pinctrl: thunderbay: Drop empty platform remove function
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 13 Dec 2022 18:23:22 +0000 (19:23 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 29 Dec 2022 01:03:51 +0000 (02:03 +0100)
A remove callback just returning 0 is equivalent to no remove callback
at all. So drop the useless function.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20221213182322.962345-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-thunderbay.c

index 590bbbf619afcb0d63b614c63e84ff5ceae11c91..7a5ff955877cbbb8e88eafe86764e3a2c0cd8e99 100644 (file)
@@ -1278,19 +1278,12 @@ static int thunderbay_pinctrl_probe(struct platform_device *pdev)
        return 0;
 }
 
-static int thunderbay_pinctrl_remove(struct platform_device *pdev)
-{
-       /* thunderbay_pinctrl_remove function to clear the assigned memory */
-       return 0;
-}
-
 static struct platform_driver thunderbay_pinctrl_driver = {
        .driver = {
                .name = "thunderbay-pinctrl",
                .of_match_table = thunderbay_pinctrl_match,
        },
        .probe = thunderbay_pinctrl_probe,
-       .remove = thunderbay_pinctrl_remove,
 };
 
 builtin_platform_driver(thunderbay_pinctrl_driver);