From: blogic Date: Tue, 10 Mar 2015 20:19:54 +0000 (+0000) Subject: ar71xx: fix gpio-latch driver X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=commitdiff_plain;h=ffedc49697a69302ea159cda15d437776bedcb24 ar71xx: fix gpio-latch driver gpio api has changed. the remove call no longer returns a value. Signed-off-by: John Crispin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44650 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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; }