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

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

 



Signed-off-by: Alexander Shiyan <eagle.alexander923@xxxxxxxxx>
---
 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");
-- 
2.32.0





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

  Powered by Linux