Skip to content

Commit 6902862

Browse files
akemnadealexandrebelloni
authored andcommitted
rtc: rc5t619: use proper module tables
Avoid requiring MODULE_ALIASES by declaring proper device id tables. Signed-off-by: Andreas Kemnade <andreas@kemnade.info> Link: https://lore.kernel.org/r/20240918212159.1191637-1-andreas@kemnade.info Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent b242650 commit 6902862

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

drivers/rtc/rtc-rc5t619.c

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,14 +429,23 @@ static int rc5t619_rtc_probe(struct platform_device *pdev)
429429
return devm_rtc_register_device(rtc->rtc);
430430
}
431431

432+
static const struct platform_device_id rc5t619_rtc_id[] = {
433+
{
434+
.name = "rc5t619-rtc",
435+
}, {
436+
/* sentinel */
437+
}
438+
};
439+
MODULE_DEVICE_TABLE(platform, rc5t619_rtc_id);
440+
432441
static struct platform_driver rc5t619_rtc_driver = {
433442
.driver = {
434443
.name = "rc5t619-rtc",
435444
},
436445
.probe = rc5t619_rtc_probe,
446+
.id_table = rc5t619_rtc_id,
437447
};
438-
439448
module_platform_driver(rc5t619_rtc_driver);
440-
MODULE_ALIAS("platform:rc5t619-rtc");
449+
441450
MODULE_DESCRIPTION("RICOH RC5T619 RTC driver");
442451
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)