summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-clps711x.c
Commit message (Collapse)AuthorAgeFilesLines
* GPIO: clps711x: use platform_device_unregister in gpio_clps711x_init()Wei Yongjun2012-10-271-2/+1
| | | | | | | | | | | | | | | | platform_device_unregister() only calls platform_device_del() and platform_device_put(), thus use platform_device_unregister() to simplify the code. Also the documents in platform.c shows that platform_device_del and platform_device_put must _only_ be externally called in error cases. All other usage is a bug. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* GPIO: clps711x: Fix direction logic for PORTDAlexander Shiyan2012-10-261-14/+51
| | | | | | | | PORTD have different direction logic, i.e. "0" is output and "1" is input. This patch fix this issue. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* GPIO: clps711x: Fix return value for gpio_clps711x_getAlexander Shiyan2012-10-241-1/+1
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* GPIO: Add support for GPIO on CLPS711X-target platformAlexander Shiyan2012-10-151-0/+163
The CLPS711X CPUs provide some GPIOs for use in the system. This driver provides support for these via gpiolib. Due to platform limitations, driver does not support interrupts, only inputs and outputs. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Acked-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
OpenPOWER on IntegriCloud