aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-03-10 20:19:54 +0000
committerJohn Crispin <blogic@openwrt.org>2015-03-10 20:19:54 +0000
commitad930582549b76cb1ea963cfd4ae4b7de7361a7a (patch)
tree018bf33ce3ca638848ad423f103c8f2b7d59f20e
parentce6e006011ccddc70cd3bf450c942649e0ca74b7 (diff)
downloadupstream-ad930582549b76cb1ea963cfd4ae4b7de7361a7a.tar.gz
upstream-ad930582549b76cb1ea963cfd4ae4b7de7361a7a.tar.bz2
upstream-ad930582549b76cb1ea963cfd4ae4b7de7361a7a.zip
ar71xx: fix gpio-latch driver
gpio api has changed. the remove call no longer returns a value. Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44650 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/ar71xx/files/drivers/gpio/gpio-latch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/drivers/gpio/gpio-latch.c b/target/linux/ar71xx/files/drivers/gpio/gpio-latch.c
index 1efa1a1e13..d911f6a2cb 100644
--- a/target/linux/ar71xx/files/drivers/gpio/gpio-latch.c
+++ b/target/linux/ar71xx/files/drivers/gpio/gpio-latch.c
@@ -193,7 +193,8 @@ static int gpio_latch_remove(struct platform_device *pdev)
{
struct gpio_latch_chip *glc = platform_get_drvdata(pdev);
- return gpiochip_remove(&glc->gc);;
+ gpiochip_remove(&glc->gc);
+ return 0;
}