pinctrl: fix pinmux_check_ops error checking

Do not use get_functions_count before checking.

Change-Id: I591f4bf9a33d9cc0e1cf64e91f839c47d415a58b
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>
Git-commit: a1d31f71e6ed2f714830df8885ec07dfe1f6632e
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Hanumant Singh <hanumant@codeaurora.org>
1 file changed