i2c: mux: gpio: Check gpio_direction_output return value
authorJean Delvare <khali@linux-fr.org>
Wed, 6 Mar 2013 22:35:53 +0000 (22:35 +0000)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 27 Mar 2013 07:55:13 +0000 (08:55 +0100)
gpio_direction_output() may fail, check for that and deal with it
appropriately. Also log an error message if gpio_request() fails.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Peter Korsgaard <peter.korsgaard@barco.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>

No differences found