MX1/MX2: -EINVAL overwritten in second iteration in mxc_gpio_setup_multiple_pins()
authorRoel Kluin <roel.kluin@gmail.com>
Wed, 3 Feb 2010 19:19:00 +0000 (20:19 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Thu, 4 Feb 2010 08:33:10 +0000 (09:33 +0100)
commit5c17ef878fa25e04b1e8f1d8f5fa8b267753472c
treea1fc4038e4089712ae868a9b5b27fc992618e7f4
parent1eaa4f2762899d2f3c54ba7a4fee564e255ad0a5
MX1/MX2: -EINVAL overwritten in second iteration in mxc_gpio_setup_multiple_pins()

Due to the `ret = gpio_request()' below in the loop, the initial -EINVAL value
of ret is overwritten.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/plat-mxc/iomux-mx1-mx2.c