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

Sascha Hauer sha at pengutronix.de
Thu Jun 30 11:58:53 PDT 2022


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