Skip to contentSkip to conversation

rpmsg: qcom_glink_rpm: convert to subsys_platform_driver()

PATCH Applied Brian Masney 3 participants 3 messages Nov 7 – Nov 9

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rpmsg: qcom_glink_rpm: convert to subsys_platform_driver()

Reduce boilerplate code in this driver and convert it over to use the macro subsys_platform_driver().

---
 drivers/rpmsg/qcom_glink_rpm.c | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)
drivers/rpmsg/qcom_glink_rpm.c +1 -11
index e3ba2c63a5fc..5e60d5cf97e6 100644
@@ -388,17 +388,7 @@ static struct platform_driver glink_rpm_driver = {
 	},
 };
 
-static int __init glink_rpm_init(void)
-{
-	return platform_driver_register(&glink_rpm_driver);
-}
-subsys_initcall(glink_rpm_init);
-
-static void __exit glink_rpm_exit(void)
-{
-	platform_driver_unregister(&glink_rpm_driver);
-}
-module_exit(glink_rpm_exit);
+subsys_platform_driver(glink_rpm_driver);
 
 MODULE_AUTHOR("Bjorn Andersson <[email protected]>");
 MODULE_DESCRIPTION("Qualcomm GLINK RPM driver");

---
base-commit: ddfe51b0a0f5dc9e415cc2c8ad8db17532dd426b
base-tree: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
change-id: 20261106-rpmsg-subsys-12bbd0524031

Best regards,

Signature · 1 line
Brian Masney <[email protected]>
maintainer Applied
#1 lore raw
Quoted 4 lines · Brian Masney

Reduce boilerplate code in this driver and convert it over to use the macro subsys_platform_driver().

Applied, thanks!

[1/1] rpmsg: qcom_glink_rpm: convert to subsys_platform_driver()

      commit: 64190e85ddb9572d27e73d5c02f43ac3c776f865

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>