pinctrl: fix pinmux_check_ops error checking
authorDong Aisheng <dong.aisheng@linaro.org>
Fri, 6 Apr 2012 12:18:09 +0000 (20:18 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 18 Apr 2012 11:53:11 +0000 (13:53 +0200)
commita1d31f71e6ed2f714830df8885ec07dfe1f6632e
tree023be552c4d60c59414999c8a58c3888c7058824
parentd1e90e9e7467dbfe521b25ba79f520bf676ebc36
pinctrl: fix pinmux_check_ops error checking

Do not use get_functions_count before checking.

Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinmux.c