rtc: fix platform driver hotplug/coldplug

Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias is
prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable RTC
platform drivers, to re-enable module auto loading.

[dbrownell@users.sourceforge.net: more drivers, minor fix]
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Greg KH <greg@kroah.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Kay Sievers and committed by Linus Torvalds ad28a07b f37d193c

+33 -2
+1 -1
drivers/rtc/rtc-at32ap700x.c
··· 290 return 0; 291 } 292 293 - MODULE_ALIAS("at32ap700x_rtc"); 294 295 static struct platform_driver at32_rtc_driver = { 296 .remove = __exit_p(at32_rtc_remove),
··· 290 return 0; 291 } 292 293 + MODULE_ALIAS("platform:at32ap700x_rtc"); 294 295 static struct platform_driver at32_rtc_driver = { 296 .remove = __exit_p(at32_rtc_remove),
+1
drivers/rtc/rtc-at91rm9200.c
··· 407 MODULE_AUTHOR("Rick Bronson"); 408 MODULE_DESCRIPTION("RTC driver for Atmel AT91RM9200"); 409 MODULE_LICENSE("GPL");
··· 407 MODULE_AUTHOR("Rick Bronson"); 408 MODULE_DESCRIPTION("RTC driver for Atmel AT91RM9200"); 409 MODULE_LICENSE("GPL"); 410 + MODULE_ALIAS("platform:at91_rtc");
+1
drivers/rtc/rtc-bfin.c
··· 470 MODULE_DESCRIPTION("Blackfin On-Chip Real Time Clock Driver"); 471 MODULE_AUTHOR("Mike Frysinger <vapier@gentoo.org>"); 472 MODULE_LICENSE("GPL");
··· 470 MODULE_DESCRIPTION("Blackfin On-Chip Real Time Clock Driver"); 471 MODULE_AUTHOR("Mike Frysinger <vapier@gentoo.org>"); 472 MODULE_LICENSE("GPL"); 473 + MODULE_ALIAS("platform:rtc-bfin");
+3
drivers/rtc/rtc-cmos.c
··· 943 cmos_do_shutdown(); 944 } 945 946 static struct platform_driver cmos_platform_driver = { 947 .remove = __exit_p(cmos_platform_remove), 948 .shutdown = cmos_platform_shutdown,
··· 943 cmos_do_shutdown(); 944 } 945 946 + /* work with hotplug and coldplug */ 947 + MODULE_ALIAS("platform:rtc_cmos"); 948 + 949 static struct platform_driver cmos_platform_driver = { 950 .remove = __exit_p(cmos_platform_remove), 951 .shutdown = cmos_platform_shutdown,
+1
drivers/rtc/rtc-ds1216.c
··· 221 MODULE_DESCRIPTION("DS1216 RTC driver"); 222 MODULE_LICENSE("GPL"); 223 MODULE_VERSION(DRV_VERSION); 224 225 module_init(ds1216_rtc_init); 226 module_exit(ds1216_rtc_exit);
··· 221 MODULE_DESCRIPTION("DS1216 RTC driver"); 222 MODULE_LICENSE("GPL"); 223 MODULE_VERSION(DRV_VERSION); 224 + MODULE_ALIAS("platform:rtc-ds1216"); 225 226 module_init(ds1216_rtc_init); 227 module_exit(ds1216_rtc_exit);
+3
drivers/rtc/rtc-ds1511.c
··· 626 return 0; 627 } 628 629 static struct platform_driver ds1511_rtc_driver = { 630 .probe = ds1511_rtc_probe, 631 .remove = __devexit_p(ds1511_rtc_remove),
··· 626 return 0; 627 } 628 629 + /* work with hotplug and coldplug */ 630 + MODULE_ALIAS("platform:ds1511"); 631 + 632 static struct platform_driver ds1511_rtc_driver = { 633 .probe = ds1511_rtc_probe, 634 .remove = __devexit_p(ds1511_rtc_remove),
+3
drivers/rtc/rtc-ds1553.c
··· 391 return 0; 392 } 393 394 static struct platform_driver ds1553_rtc_driver = { 395 .probe = ds1553_rtc_probe, 396 .remove = __devexit_p(ds1553_rtc_remove),
··· 391 return 0; 392 } 393 394 + /* work with hotplug and coldplug */ 395 + MODULE_ALIAS("platform:rtc-ds1553"); 396 + 397 static struct platform_driver ds1553_rtc_driver = { 398 .probe = ds1553_rtc_probe, 399 .remove = __devexit_p(ds1553_rtc_remove),
+1
drivers/rtc/rtc-ds1742.c
··· 276 MODULE_DESCRIPTION("Dallas DS1742 RTC driver"); 277 MODULE_LICENSE("GPL"); 278 MODULE_VERSION(DRV_VERSION);
··· 276 MODULE_DESCRIPTION("Dallas DS1742 RTC driver"); 277 MODULE_LICENSE("GPL"); 278 MODULE_VERSION(DRV_VERSION); 279 + MODULE_ALIAS("platform:rtc-ds1742");
+3
drivers/rtc/rtc-ep93xx.c
··· 132 return 0; 133 } 134 135 static struct platform_driver ep93xx_rtc_platform_driver = { 136 .driver = { 137 .name = "ep93xx-rtc",
··· 132 return 0; 133 } 134 135 + /* work with hotplug and coldplug */ 136 + MODULE_ALIAS("platform:ep93xx-rtc"); 137 + 138 static struct platform_driver ep93xx_rtc_platform_driver = { 139 .driver = { 140 .name = "ep93xx-rtc",
+3
drivers/rtc/rtc-m48t59.c
··· 465 return 0; 466 } 467 468 static struct platform_driver m48t59_rtc_driver = { 469 .driver = { 470 .name = "rtc-m48t59",
··· 465 return 0; 466 } 467 468 + /* work with hotplug and coldplug */ 469 + MODULE_ALIAS("platform:rtc-m48t59"); 470 + 471 static struct platform_driver m48t59_rtc_driver = { 472 .driver = { 473 .name = "rtc-m48t59",
+1
drivers/rtc/rtc-m48t86.c
··· 199 MODULE_DESCRIPTION("M48T86 RTC driver"); 200 MODULE_LICENSE("GPL"); 201 MODULE_VERSION(DRV_VERSION); 202 203 module_init(m48t86_rtc_init); 204 module_exit(m48t86_rtc_exit);
··· 199 MODULE_DESCRIPTION("M48T86 RTC driver"); 200 MODULE_LICENSE("GPL"); 201 MODULE_VERSION(DRV_VERSION); 202 + MODULE_ALIAS("platform:rtc-m48t86"); 203 204 module_init(m48t86_rtc_init); 205 module_exit(m48t86_rtc_exit);
+1 -1
drivers/rtc/rtc-omap.c
··· 497 rtc_write(0, OMAP_RTC_INTERRUPTS_REG); 498 } 499 500 - MODULE_ALIAS("omap_rtc"); 501 static struct platform_driver omap_rtc_driver = { 502 .probe = omap_rtc_probe, 503 .remove = __devexit_p(omap_rtc_remove),
··· 497 rtc_write(0, OMAP_RTC_INTERRUPTS_REG); 498 } 499 500 + MODULE_ALIAS("platform:omap_rtc"); 501 static struct platform_driver omap_rtc_driver = { 502 .probe = omap_rtc_probe, 503 .remove = __devexit_p(omap_rtc_remove),
+1
drivers/rtc/rtc-rs5c313.c
··· 421 MODULE_AUTHOR("kogiidena , Nobuhiro Iwamatsu <iwamatsu@nigauri.org>"); 422 MODULE_DESCRIPTION("Ricoh RS5C313 RTC device driver"); 423 MODULE_LICENSE("GPL");
··· 421 MODULE_AUTHOR("kogiidena , Nobuhiro Iwamatsu <iwamatsu@nigauri.org>"); 422 MODULE_DESCRIPTION("Ricoh RS5C313 RTC device driver"); 423 MODULE_LICENSE("GPL"); 424 + MODULE_ALIAS("platform:" DRV_NAME);
+1
drivers/rtc/rtc-s3c.c
··· 592 MODULE_DESCRIPTION("Samsung S3C RTC Driver"); 593 MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>"); 594 MODULE_LICENSE("GPL");
··· 592 MODULE_DESCRIPTION("Samsung S3C RTC Driver"); 593 MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>"); 594 MODULE_LICENSE("GPL"); 595 + MODULE_ALIAS("platform:s3c2410-rtc");
+1
drivers/rtc/rtc-sa1100.c
··· 399 MODULE_AUTHOR("Richard Purdie <rpurdie@rpsys.net>"); 400 MODULE_DESCRIPTION("SA11x0/PXA2xx Realtime Clock Driver (RTC)"); 401 MODULE_LICENSE("GPL");
··· 399 MODULE_AUTHOR("Richard Purdie <rpurdie@rpsys.net>"); 400 MODULE_DESCRIPTION("SA11x0/PXA2xx Realtime Clock Driver (RTC)"); 401 MODULE_LICENSE("GPL"); 402 + MODULE_ALIAS("platform:sa1100-rtc");
+1
drivers/rtc/rtc-sh.c
··· 664 MODULE_VERSION(DRV_VERSION); 665 MODULE_AUTHOR("Paul Mundt <lethal@linux-sh.org>, Jamie Lenehan <lenehan@twibble.org>"); 666 MODULE_LICENSE("GPL");
··· 664 MODULE_VERSION(DRV_VERSION); 665 MODULE_AUTHOR("Paul Mundt <lethal@linux-sh.org>, Jamie Lenehan <lenehan@twibble.org>"); 666 MODULE_LICENSE("GPL"); 667 + MODULE_ALIAS("platform:" DRV_NAME);
+3
drivers/rtc/rtc-stk17ta8.c
··· 394 return 0; 395 } 396 397 static struct platform_driver stk17ta8_rtc_driver = { 398 .probe = stk17ta8_rtc_probe, 399 .remove = __devexit_p(stk17ta8_rtc_remove),
··· 394 return 0; 395 } 396 397 + /* work with hotplug and coldplug */ 398 + MODULE_ALIAS("platform:stk17ta8"); 399 + 400 static struct platform_driver stk17ta8_rtc_driver = { 401 .probe = stk17ta8_rtc_probe, 402 .remove = __devexit_p(stk17ta8_rtc_remove),
+1
drivers/rtc/rtc-v3020.c
··· 264 MODULE_DESCRIPTION("V3020 RTC"); 265 MODULE_AUTHOR("Raphael Assenat"); 266 MODULE_LICENSE("GPL");
··· 264 MODULE_DESCRIPTION("V3020 RTC"); 265 MODULE_AUTHOR("Raphael Assenat"); 266 MODULE_LICENSE("GPL"); 267 + MODULE_ALIAS("platform:v3020");
+3
drivers/rtc/rtc-vr41xx.c
··· 422 return 0; 423 } 424 425 static struct platform_driver rtc_platform_driver = { 426 .probe = rtc_probe, 427 .remove = __devexit_p(rtc_remove),
··· 422 return 0; 423 } 424 425 + /* work with hotplug and coldplug */ 426 + MODULE_ALIAS("platform:RTC"); 427 + 428 static struct platform_driver rtc_platform_driver = { 429 .probe = rtc_probe, 430 .remove = __devexit_p(rtc_remove),