]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pinctrl: add some error checking for user interfaces
authorDong Aisheng <dong.aisheng@linaro.org>
Tue, 10 Apr 2012 04:41:34 +0000 (12:41 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 11 Apr 2012 08:28:38 +0000 (10:28 +0200)
commit869d74583cf12a87b98c306f559844738f3f1cea
tree2ac49f4fed8983e2f0c2f42b79366f147ff0ac0b
parent828eef7550ff0cdd25a808d5ee11e46df36a10ba
pinctrl: add some error checking for user interfaces

This patch can avoid kernel oops in case the mux or config
function is not supported by driver.

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/pinconf.c
drivers/pinctrl/pinmux.c