[PATCH] drivers: firmware: arm-scmi: Use core_platform_driver() macro
Alexander Shiyan
eagle.alexander923 at gmail.com
Mon Jun 27 23:19:40 PDT 2022
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);
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 at arm.com>");
MODULE_DESCRIPTION("ARM SCMI protocol driver");
--
2.32.0
More information about the barebox
mailing list