diff options
| author | Kay Sievers <[email protected]> | 2008-04-11 04:29:25 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-04-11 15:06:44 +0000 |
| commit | ad28a07bcadc5945f7a90d9de3a196825e69d9d3 (patch) | |
| tree | 73ed6752e8c63fcc50af20c8ed88c3fda98a58c0 /drivers/rtc/rtc-cmos.c | |
| parent | watchdog: fix platform driver hotplug/coldplug (diff) | |
| download | kernel-ad28a07bcadc5945f7a90d9de3a196825e69d9d3.tar.gz kernel-ad28a07bcadc5945f7a90d9de3a196825e69d9d3.zip | |
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.
[[email protected]: more drivers, minor fix]
Signed-off-by: Kay Sievers <[email protected]>
Signed-off-by: David Brownell <[email protected]>
Cc: Greg KH <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/rtc/rtc-cmos.c')
| -rw-r--r-- | drivers/rtc/rtc-cmos.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c index f3ee2ad566b4..b48517021ee6 100644 --- a/drivers/rtc/rtc-cmos.c +++ b/drivers/rtc/rtc-cmos.c @@ -943,6 +943,9 @@ static void cmos_platform_shutdown(struct platform_device *pdev) cmos_do_shutdown(); } +/* work with hotplug and coldplug */ +MODULE_ALIAS("platform:rtc_cmos"); + static struct platform_driver cmos_platform_driver = { .remove = __exit_p(cmos_platform_remove), .shutdown = cmos_platform_shutdown, |
