* [PATCH] rpmsg: qcom_glink_rpm: convert to subsys_platform_driver()
@ 2026-11-07 0:31 Brian Masney
2026-11-08 20:08 ` Bjorn Andersson
2026-11-09 9:22 ` Konrad Dybcio
0 siblings, 2 replies; 3+ messages in thread
From: Brian Masney @ 2026-11-07 0:31 UTC (permalink / raw)
To: Bjorn Andersson, Mathieu Poirier
Cc: linux-arm-msm, linux-remoteproc, linux-kernel, Brian Masney
Reduce boilerplate code in this driver and convert it over to use
the macro subsys_platform_driver().
Signed-off-by: Brian Masney <bmasney@redhat.com>
---
drivers/rpmsg/qcom_glink_rpm.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/drivers/rpmsg/qcom_glink_rpm.c b/drivers/rpmsg/qcom_glink_rpm.c
index e3ba2c63a5fc..5e60d5cf97e6 100644
--- a/drivers/rpmsg/qcom_glink_rpm.c
+++ b/drivers/rpmsg/qcom_glink_rpm.c
@@ -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 <bjorn.andersson@linaro.org>");
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,
--
Brian Masney <bmasney@redhat.com>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] rpmsg: qcom_glink_rpm: convert to subsys_platform_driver()
2026-11-07 0:31 [PATCH] rpmsg: qcom_glink_rpm: convert to subsys_platform_driver() Brian Masney
@ 2026-11-08 20:08 ` Bjorn Andersson
2026-11-09 9:22 ` Konrad Dybcio
1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Andersson @ 2026-11-08 20:08 UTC (permalink / raw)
To: Mathieu Poirier, Brian Masney
Cc: linux-arm-msm, linux-remoteproc, linux-kernel
On Fri, 06 Nov 2026 19:31:12 -0500, Brian Masney wrote:
> 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,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] rpmsg: qcom_glink_rpm: convert to subsys_platform_driver()
2026-11-07 0:31 [PATCH] rpmsg: qcom_glink_rpm: convert to subsys_platform_driver() Brian Masney
2026-11-08 20:08 ` Bjorn Andersson
@ 2026-11-09 9:22 ` Konrad Dybcio
1 sibling, 0 replies; 3+ messages in thread
From: Konrad Dybcio @ 2026-11-09 9:22 UTC (permalink / raw)
To: Brian Masney, Bjorn Andersson, Mathieu Poirier
Cc: linux-arm-msm, linux-remoteproc, linux-kernel
On 11/7/26 1:31 AM, Brian Masney wrote:
> Reduce boilerplate code in this driver and convert it over to use
> the macro subsys_platform_driver().
>
> Signed-off-by: Brian Masney <bmasney@redhat.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-09 9:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-07 0:31 [PATCH] rpmsg: qcom_glink_rpm: convert to subsys_platform_driver() Brian Masney
2026-11-08 20:08 ` Bjorn Andersson
2026-11-09 9:22 ` Konrad Dybcio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®