]> git.sur5r.net Git - u-boot/commit
dm: gpio: Allow gpio command to adjust GPIOs that are busy
authorSimon Glass <sjg@chromium.org>
Mon, 11 Aug 2014 15:23:53 +0000 (09:23 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 1 Sep 2014 05:21:19 +0000 (23:21 -0600)
commit9165e8428d02b42b7f2b87083035e4e2493df721
treeb9bc1b8501cadb93ba49da25c83d61674ef2c6a0
parent89e6405425c7b52fd1330c61b6f5526612b87516
dm: gpio: Allow gpio command to adjust GPIOs that are busy

The gpio command mostly relies on gpio_request() and gpio_free() being
nops, in that you can request a GPIO twice. With driver model this is
now implemented correctly, so it fails.

Change the command to deal with a failure to claim the GPIO.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/cmd_gpio.c