pinctrl: mediatek: fix build error

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>
This commit is contained in:
Hongzhou Yang 2015-02-11 23:56:11 -08:00 committed by Linus Walleij
parent 3221f40b76
commit c445cac307
1 changed files with 3 additions and 2 deletions

View File

@ -406,7 +406,8 @@ static int mtk_pctrl_dt_subnode_to_map(struct pinctrl_dev *pctldev,
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;
@ -1125,7 +1126,7 @@ int mtk_pctrl_init(struct platform_device *pdev,
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;
}