mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-01 10:42:11 +00:00
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>
This commit is contained in:
parent
b242650dfa
commit
6902862149
@ -429,14 +429,23 @@ static int rc5t619_rtc_probe(struct platform_device *pdev)
|
|||||||
return devm_rtc_register_device(rtc->rtc);
|
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 = {
|
static struct platform_driver rc5t619_rtc_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "rc5t619-rtc",
|
.name = "rc5t619-rtc",
|
||||||
},
|
},
|
||||||
.probe = rc5t619_rtc_probe,
|
.probe = rc5t619_rtc_probe,
|
||||||
|
.id_table = rc5t619_rtc_id,
|
||||||
};
|
};
|
||||||
|
|
||||||
module_platform_driver(rc5t619_rtc_driver);
|
module_platform_driver(rc5t619_rtc_driver);
|
||||||
MODULE_ALIAS("platform:rc5t619-rtc");
|
|
||||||
MODULE_DESCRIPTION("RICOH RC5T619 RTC driver");
|
MODULE_DESCRIPTION("RICOH RC5T619 RTC driver");
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
Loading…
Reference in New Issue
Block a user