Skip to content

Commit

Permalink
pinctrl: mvebu: fix checking for SoC specific controls
Browse files Browse the repository at this point in the history
This patch fixes a minor bug (probably due to a typo) while checking
the SoC specific controls in mvebu_pinctrl_probe().

Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Simon Guinot authored and Linus Walleij committed Mar 21, 2013
1 parent bf4d7be commit 48a23fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pinctrl/mvebu/pinctrl-mvebu.c
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ int mvebu_pinctrl_probe(struct platform_device *pdev)

/* special soc specific control */
if (ctrl->mpp_get || ctrl->mpp_set) {
if (!ctrl->name || !ctrl->mpp_set || !ctrl->mpp_set) {
if (!ctrl->name || !ctrl->mpp_get || !ctrl->mpp_set) {
dev_err(&pdev->dev, "wrong soc control info\n");
return -EINVAL;
}
Expand Down

0 comments on commit 48a23fa

Please sign in to comment.