Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtc: Fix module autoload for rtc-{ab8500,max8997,s5m} drivers

These platform drivers have a platform device ID table but the module
alias information is not created so module autoloading will not work.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>

authored by

Javier Martinez Canillas and committed by
Alexandre Belloni
63074cc3 399cf0f6

+3
+1
drivers/rtc/rtc-ab8500.c
··· 446 446 { "ab8500-rtc", (kernel_ulong_t)&ab8500_rtc_ops, }, 447 447 { "ab8540-rtc", (kernel_ulong_t)&ab8540_rtc_ops, }, 448 448 }; 449 + MODULE_DEVICE_TABLE(platform, ab85xx_rtc_ids); 449 450 450 451 static int ab8500_rtc_probe(struct platform_device *pdev) 451 452 {
+1
drivers/rtc/rtc-max8997.c
··· 521 521 { "max8997-rtc", 0 }, 522 522 {}, 523 523 }; 524 + MODULE_DEVICE_TABLE(platform, rtc_id); 524 525 525 526 static struct platform_driver max8997_rtc_driver = { 526 527 .driver = {
+1
drivers/rtc/rtc-s5m.c
··· 807 807 { "s2mps14-rtc", S2MPS14X }, 808 808 { }, 809 809 }; 810 + MODULE_DEVICE_TABLE(platform, s5m_rtc_id); 810 811 811 812 static struct platform_driver s5m_rtc_driver = { 812 813 .driver = {