summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2024-02-15 11:33:53 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2024-02-16 12:59:47 +0100
commit59aab0bebb1b6b064a75e02279d6e90a8c30e2fb (patch)
treee0a32c8d13575e3cc5daf40cf187eb3702d9d483
parente8ec515026fd3f73b4c82ad1c36d244feed4e76d (diff)
downloadbarebox-59aab0bebb1b.tar.gz
barebox-59aab0bebb1b.tar.xz
firmware: arm_scmi: call device driver remove if defined
We don't have SCMI driver remove callbacks like Linux does, so scmi_bus_type.remove is just an empty function. As no SCMI driver in barebox populates its remove callback, we can just replace this empty implementation by the default one of calling driver::remove. This has the added benefit that the SCMI devices won't be printed on shutdown when CONFIG_DEBUG_PROBES=y is enabled. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20240215103353.2799723-3-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/firmware/arm_scmi/bus.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/firmware/arm_scmi/bus.c b/drivers/firmware/arm_scmi/bus.c
index 5a80911119..1d9a0f089b 100644
--- a/drivers/firmware/arm_scmi/bus.c
+++ b/drivers/firmware/arm_scmi/bus.c
@@ -206,15 +206,10 @@ static int scmi_dev_probe(struct device *dev)
return scmi_drv->probe(scmi_dev);
}
-static void scmi_dev_remove(struct device *dev)
-{
-}
-
struct bus_type scmi_bus_type = {
.name = "scmi_protocol",
.match = scmi_dev_match,
.probe = scmi_dev_probe,
- .remove = scmi_dev_remove,
};
EXPORT_SYMBOL_GPL(scmi_bus_type);