From daf2140192150dfb740e09c0aede68d242db0fdd Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 10 Mar 2015 20:19:54 +0000 Subject: [PATCH] ar71xx: fix gpio-latch driver gpio api has changed. the remove call no longer returns a value. Signed-off-by: John Crispin SVN-Revision: 44650 --- target/linux/ar71xx/files/drivers/gpio/gpio-latch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/linux/ar71xx/files/drivers/gpio/gpio-latch.c b/target/linux/ar71xx/files/drivers/gpio/gpio-latch.c index 1efa1a1e13ea..d911f6a2cb14 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; } -- 2.30.2