gpio: omap: fix omap2_set_gpio_debounce
[deliverable/linux.git] / drivers / gpio / gpio-altera.c
index 0f3d336d6303e9c4745f8da260ae5e7df8299805..9b7e0b3db387218865004332c8313616026d7ae4 100644 (file)
@@ -338,9 +338,9 @@ static int altera_gpio_remove(struct platform_device *pdev)
 {
        struct altera_gpio_chip *altera_gc = platform_get_drvdata(pdev);
 
-       gpiochip_remove(&altera_gc->mmchip.gc);
+       of_mm_gpiochip_remove(&altera_gc->mmchip);
 
-       return -EIO;
+       return 0;
 }
 
 static const struct of_device_id altera_gpio_of_match[] = {
This page took 0.023789 seconds and 5 git commands to generate.