On 28.06.22 08:19, Alexander Shiyan wrote: > Signed-off-by: Alexander Shiyan <eagle.alexander923@xxxxxxxxx> Reviewed-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> > --- > drivers/firmware/arm_scmi/driver.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/drivers/firmware/arm_scmi/driver.c b/drivers/firmware/arm_scmi/driver.c > index ef3d76b3f4..ad91a60e0c 100644 > --- a/drivers/firmware/arm_scmi/driver.c > +++ b/drivers/firmware/arm_scmi/driver.c > @@ -1252,6 +1252,7 @@ static struct driver_d scmi_driver = { > .of_compatible = scmi_of_match, > .probe = scmi_probe, > }; > +core_platform_driver(scmi_driver); > > static int __init scmi_bus_driver_init(void) > { > @@ -1267,12 +1268,6 @@ static int __init scmi_bus_driver_init(void) > } > pure_initcall(scmi_bus_driver_init); > > -static int __init scmi_platform_driver_init(void) > -{ > - return platform_driver_register(&scmi_driver); > -} > -core_initcall(scmi_platform_driver_init); > - > MODULE_ALIAS("platform: arm-scmi"); > MODULE_AUTHOR("Sudeep Holla <sudeep.holla@xxxxxxx>"); > MODULE_DESCRIPTION("ARM SCMI protocol driver"); -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |