[PATCH] drivers: firmware: arm-scmi: Use core_platform_driver() macro

Alexander Shiyan eagle.alexander923 at gmail.com
Thu Jun 30 12:04:44 PDT 2022


Can this struct be renamed to arm_scmi_driver?

чт, 30 июн. 2022 г. в 21:58, Sascha Hauer <sha at pengutronix.de>:
>
> On Tue, Jun 28, 2022 at 09:19:40AM +0300, Alexander Shiyan wrote:
> > Signed-off-by: Alexander Shiyan <eagle.alexander923 at gmail.com>
> > ---
> >  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);
>
> Had to drop this one as well. The core_platform_driver macro expands
> to an initcall named drv##_register which becomes scmi_driver_register,
> but that function already exists in include/linux/scmi_protocol.h.
>
> Sascha
>
> --
> 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 |



More information about the barebox mailing list