* [PATCH] rtc: rc5t619: use proper module tables
@ 2024-09-18 21:21 Andreas Kemnade
2024-09-21 23:19 ` Alexandre Belloni
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Kemnade @ 2024-09-18 21:21 UTC (permalink / raw)
To: alexandre.belloni, linux-rtc, linux-kernel; +Cc: Andreas Kemnade
Avoid requiring MODULE_ALIASES by declaring proper device id tables.
Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
---
drivers/rtc/rtc-rc5t619.c | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/drivers/rtc/rtc-rc5t619.c b/drivers/rtc/rtc-rc5t619.c
index e73102a39f1b..711f62eecd79 100644
--- a/drivers/rtc/rtc-rc5t619.c
+++ b/drivers/rtc/rtc-rc5t619.c
@@ -429,14 +429,23 @@ static int rc5t619_rtc_probe(struct platform_device *pdev)
return devm_rtc_register_device(rtc->rtc);
}
+static const struct platform_device_id rc5t619_rtc_id[] = {
+ {
+ .name = "rc5t619-rtc",
+ }, {
+ /* sentinel */
+ }
+};
+MODULE_DEVICE_TABLE(platform, rc5t619_rtc_id);
+
static struct platform_driver rc5t619_rtc_driver = {
.driver = {
.name = "rc5t619-rtc",
},
.probe = rc5t619_rtc_probe,
+ .id_table = rc5t619_rtc_id,
};
-
module_platform_driver(rc5t619_rtc_driver);
-MODULE_ALIAS("platform:rc5t619-rtc");
+
MODULE_DESCRIPTION("RICOH RC5T619 RTC driver");
MODULE_LICENSE("GPL");
--
2.39.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] rtc: rc5t619: use proper module tables
2024-09-18 21:21 [PATCH] rtc: rc5t619: use proper module tables Andreas Kemnade
@ 2024-09-21 23:19 ` Alexandre Belloni
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Belloni @ 2024-09-21 23:19 UTC (permalink / raw)
To: linux-rtc, linux-kernel, Andreas Kemnade
On Wed, 18 Sep 2024 23:21:59 +0200, Andreas Kemnade wrote:
> Avoid requiring MODULE_ALIASES by declaring proper device id tables.
>
>
Applied, thanks!
[1/1] rtc: rc5t619: use proper module tables
https://git.kernel.org/abelloni/c/690286214916
Best regards,
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-09-21 23:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-18 21:21 [PATCH] rtc: rc5t619: use proper module tables Andreas Kemnade
2024-09-21 23:19 ` Alexandre Belloni
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®