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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 |




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux