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