rtc: rc5t619: use proper module tables
PATCH 1/1 rtc: rc5t619: use proper module tables
Avoid requiring MODULE_ALIASES by declaring proper device id tables.
Signed-off-by Andreas Kemnade <[email protected]>
--- drivers/rtc/rtc-rc5t619.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
drivers/rtc/rtc-rc5t619.c +11 -2
@@ -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" );
Signature · 1 line
2.39.2
Quoted 3 lines · Andreas Kemnade
Avoid requiring
MODULE_ALIASESby declaring proper device id tables.
Applied, thanks!
[1/1] rtc: rc5t619: use proper module tables
https://git.kernel.org/abelloni/c/690286214916
Best regards,
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com