[PATCH 1/3] soc: bcm: bcm2835-power: Drop empty platform remove function

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Mon Dec 12 14:25:47 PST 2022


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 at pengutronix.de>
---
 drivers/soc/bcm/bcm2835-power.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/soc/bcm/bcm2835-power.c b/drivers/soc/bcm/bcm2835-power.c
index 5bcd047768b6..bf51f03f77d6 100644
--- a/drivers/soc/bcm/bcm2835-power.c
+++ b/drivers/soc/bcm/bcm2835-power.c
@@ -701,14 +701,8 @@ static int bcm2835_power_probe(struct platform_device *pdev)
 	return ret;
 }
 
-static int bcm2835_power_remove(struct platform_device *pdev)
-{
-	return 0;
-}
-
 static struct platform_driver bcm2835_power_driver = {
 	.probe		= bcm2835_power_probe,
-	.remove		= bcm2835_power_remove,
 	.driver = {
 		.name =	"bcm2835-power",
 	},
-- 
2.38.1




More information about the linux-rpi-kernel mailing list