dm: omap: gpio: Support driver model
authorSimon Glass <sjg@chromium.org>
Thu, 23 Oct 2014 03:37:09 +0000 (21:37 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 24 Oct 2014 01:29:07 +0000 (19:29 -0600)
commit5915a2ad0da6086892c587442d4eabd681f987b5
tree69b0d10e184029de8606178bc2ec7a82e01e8287
parentd57b61143d8c74dee392fc5be52cb6ec5a15b8fc
dm: omap: gpio: Support driver model

Add driver model support to this driver, while retaining support for the
legacy system. Driver model GPIO support is enabled with CONFIG_DM_GPIO
as usual.

Since gpio_is_valid() no longer exists, we can use the -EINVAL error
returned from gpio_request().

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@ti.com>
arch/arm/include/asm/omap_gpio.h
drivers/gpio/omap_gpio.c
drivers/mmc/omap_hsmmc.c