diff mbox series

pinctrl: thunderbay: Drop empty platform remove function

Message ID 20221213182322.962345-1-u.kleine-koenig@pengutronix.de
State Accepted
Commit f3cd465bbd15960f30668c7b4a2ac18a0708bc39
Headers show
Series pinctrl: thunderbay: Drop empty platform remove function | expand

Commit Message

Uwe Kleine-König Dec. 13, 2022, 6:23 p.m. UTC
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>
---
 drivers/pinctrl/pinctrl-thunderbay.c | 7 -------
 1 file changed, 7 deletions(-)


base-commit: 830b3c68c1fb1e9176028d02ef86f3cf76aa2476

Comments

Linus Walleij Dec. 29, 2022, 1:06 a.m. UTC | #1
On Tue, Dec 13, 2022 at 7:23 PM Uwe Kleine-König
<u.kleine-koenig@pengutronix.de> wrote:

> 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>

Patch applied!

Yours,
Linus Walleij
diff mbox series

Patch

diff --git a/drivers/pinctrl/pinctrl-thunderbay.c b/drivers/pinctrl/pinctrl-thunderbay.c
index 9328b17485cf..1acf2ab1a3db 100644
--- a/drivers/pinctrl/pinctrl-thunderbay.c
+++ b/drivers/pinctrl/pinctrl-thunderbay.c
@@ -1274,19 +1274,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);