pinctrl: handle zero found dt pinconfig properties better
authorHeiko Stübner <heiko@sntech.de>
Fri, 14 Jun 2013 15:43:21 +0000 (17:43 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 17 Jun 2013 16:18:31 +0000 (18:18 +0200)
commite4a8844c04c00a1a64c6779692e1baff3851c1f7
tree3ba79a4fd0c9813749b555f680d0fbc7a36f94e6
parent9ee1f7d266aa1e2bfeb20cb5d4ac299c8e8ef8c7
pinctrl: handle zero found dt pinconfig properties better

This adds a shortcut when no valid pinconf properties are found
in the parsed dt node, to set the values immediately and return.

Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinconf-generic.c