mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] soc: Drop empty platform remove function
@ 2022-12-12 22:25 Uwe Kleine-König
  2022-12-12 22:25 ` [PATCH 1/3] soc: bcm: bcm2835-power: " Uwe Kleine-König
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Uwe Kleine-König @ 2022-12-12 22:25 UTC (permalink / raw)
  To: Florian Fainelli, Ray Jui, Scott Branden, Thierry Reding,
	Jonathan Hunter
  Cc: Broadcom internal kernel review list, linux-rpi-kernel,
	linux-arm-kernel, linux-kernel, kernel, Matthias Brugger,
	linux-mediatek, linux-tegra

Hello,

this patch series removes all platform remove functions that only return
zero below drivers/soc. There is no reason to have these, as the only
caller is platform core code doing:

        if (drv->remove) {
                int ret = drv->remove(dev);

                if (ret)
			dev_warn(...)
        }

(in platform_remove()) and so having no remove function is both
equivalent and simpler.

Best regards
Uwe

Uwe Kleine-König (3):
  soc: bcm: bcm2835-power: Drop empty platform remove function
  soc: mediatek: mutex: Drop empty platform remove function
  soc: tegra: cbb: Drop empty platform remove function

 drivers/soc/bcm/bcm2835-power.c      | 6 ------
 drivers/soc/mediatek/mtk-mutex.c     | 6 ------
 drivers/soc/tegra/cbb/tegra234-cbb.c | 6 ------
 3 files changed, 18 deletions(-)


base-commit: 830b3c68c1fb1e9176028d02ef86f3cf76aa2476
-- 
2.38.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-04-05 12:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-12 22:25 [PATCH 0/3] soc: Drop empty platform remove function Uwe Kleine-König
2022-12-12 22:25 ` [PATCH 1/3] soc: bcm: bcm2835-power: " Uwe Kleine-König
2022-12-12 22:56   ` Florian Fainelli
2022-12-12 22:25 ` [PATCH 2/3] soc: mediatek: mutex: " Uwe Kleine-König
2022-12-13  9:50   ` AngeloGioacchino Del Regno
2022-12-16 12:27     ` Matthias Brugger
2022-12-12 22:25 ` [PATCH 3/3] soc: tegra: cbb: " Uwe Kleine-König
2023-01-12 21:55   ` Uwe Kleine-König
2023-02-15  7:47     ` Uwe Kleine-König
2023-02-15  9:47   ` Sumit Gupta
2023-04-05 12:41   ` (subset) " Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®