[PATCH 3/3] firmware: arm_scmi: call device driver remove if defined
Ahmad Fatoum
a.fatoum at pengutronix.de
Thu Feb 15 02:33:53 PST 2024
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 at pengutronix.de>
---
drivers/firmware/arm_scmi/bus.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/firmware/arm_scmi/bus.c b/drivers/firmware/arm_scmi/bus.c
index 5a80911119e0..1d9a0f089b44 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);
--
2.39.2
More information about the barebox
mailing list