Due to pinconf_generic_parse_dt_config() API changes in pinctrl
devel branch, add one parameter to fix build error.
Also fix warning:
drivers/pinctrl/mediatek/pinctrl-mtk-common.c:718:3: warning:
too many arguments for format [-Wformat-extra-args]
dev_err(&pdev->dev, "only support pins-are-numbered format\n", ret);
^
by removing extra parameter when calling dev_err in mtk_pctrl_init.
Signed-off-by: Hongzhou Yang <hongzhou.yang@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
return -EINVAL;
}
- err = pinconf_generic_parse_dt_config(node, &configs, &num_configs);
+ err = pinconf_generic_parse_dt_config(node, pctldev, &configs,
+ &num_configs);
if (num_configs)
has_config = 1;
prop = of_find_property(np, "pins-are-numbered", NULL);
if (!prop) {
- dev_err(&pdev->dev, "only support pins-are-numbered format\n", ret);
+ dev_err(&pdev->dev, "only support pins-are-numbered format\n");
return -EINVAL;
}