Browse Source

ar71xx: fix gpio-latch driver

gpio api has changed. the remove call no longer returns a value.

Signed-off-by: John Crispin <[email protected]>

SVN-Revision: 44650
John Crispin 10 years ago
parent
commit
daf2140192
1 changed files with 2 additions and 1 deletions
  1. 2 1
      target/linux/ar71xx/files/drivers/gpio/gpio-latch.c

+ 2 - 1
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;
 }