gpio: omap: remove remainder of list management
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 10 Jun 2019 17:10:46 +0000 (20:10 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 12 Jun 2019 09:13:12 +0000 (11:13 +0200)
Commit c4791bc6e3a6 ("gpio: omap: drop omap_gpio_list") removed the
list head and addition to the list head of each gpio bank, but failed
to remove the list_del() call and the node inside struct gpio_bank.
Remove these too.

Fixes: c4791bc6e3a6 ("gpio: omap: drop omap_gpio_list")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-omap.c

index 44b214e5cefbed1caeb19308ea82ddf7bc5ee458..708a135e2f0cf5b799151d8c0abfbdc58f0c5276 100644 (file)
@@ -47,7 +47,6 @@ struct gpio_regs {
 };
 
 struct gpio_bank {
-       struct list_head node;
        void __iomem *base;
        int irq;
        u32 non_wakeup_gpios;
@@ -1641,7 +1640,6 @@ static int omap_gpio_remove(struct platform_device *pdev)
        struct gpio_bank *bank = platform_get_drvdata(pdev);
 
        cpu_pm_unregister_notifier(&bank->nb);
-       list_del(&bank->node);
        gpiochip_remove(&bank->chip);
        pm_runtime_disable(&pdev->dev);
        if (bank->dbck_flag)