gpio-ich: Check for pin availability at request time
commit25f27db48e9d741cf3494f36e287d3c34a0fdba3
authorJean Delvare <khali@linux-fr.org>
Tue, 5 Mar 2013 20:22:38 +0000 (5 21:22 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 27 Mar 2013 08:11:09 +0000 (27 09:11 +0100)
treeaef9f0205a7d1ebbcf0d0a7c3021297adcdcb510
parent753c5983ddd38022a680a36f5d66b23b185c9b62
gpio-ich: Check for pin availability at request time

Stop checking for pin availability in direction and get functions.
These functions can be called repeatedly, so checking every time is
bad for performance. Now that requesting GPIO pins is no longer
optional, checking for availability at pin request time is enough.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Peter Tyser <ptyser@xes-inc.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-ich.c