rpmsg: qcom_glink_rpm: convert to subsys_platform_driver()
Subsystems (2)
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().
Signed-off-by Brian Masney <[email protected]>
--- drivers/rpmsg/qcom_glink_rpm.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
drivers/rpmsg/qcom_glink_rpm.c +1 -11
@@ -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]>
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]>
Quoted 5 lines · Brian Masney
Reduce boilerplate code in this driver and convert it over to use the macro
subsys_platform_driver().Signed-off-by Brian Masney <[email protected]>---
Reviewed-by Konrad Dybcio <[email protected]>
Konrad