* [PATCH] media: davinci/vpif.c: convert to subsys_platform_driver()
@ 2026-11-07 0:18 Brian Masney
0 siblings, 0 replies; only message in thread
From: Brian Masney @ 2026-11-07 0:18 UTC (permalink / raw)
To: Lad, Prabhakar, Mauro Carvalho Chehab
Cc: linux-media, 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/media/platform/ti/davinci/vpif.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/drivers/media/platform/ti/davinci/vpif.c b/drivers/media/platform/ti/davinci/vpif.c
index cc0b0b8cdb89..0deb91b7fb9d 100644
--- a/drivers/media/platform/ti/davinci/vpif.c
+++ b/drivers/media/platform/ti/davinci/vpif.c
@@ -595,15 +595,5 @@ static struct platform_driver vpif_driver = {
.probe = vpif_probe,
};
-static void vpif_exit(void)
-{
- platform_driver_unregister(&vpif_driver);
-}
-
-static int __init vpif_init(void)
-{
- return platform_driver_register(&vpif_driver);
-}
-subsys_initcall(vpif_init);
-module_exit(vpif_exit);
+subsys_platform_driver(vpif_driver);
---
base-commit: ddfe51b0a0f5dc9e415cc2c8ad8db17532dd426b
base-tree: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
change-id: 20261106-media-subsys-d151a4c5344b
Best regards,
--
Brian Masney <bmasney@redhat.com>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-07 0:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-07 0:18 [PATCH] media: davinci/vpif.c: convert to subsys_platform_driver() Brian Masney
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®