diff options
author | Johan Hovold <johan@kernel.org> | 2014-12-10 18:52:58 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-10 20:41:14 -0500 |
commit | a430ca22676e270508edb8d74d6fb895cf74584b (patch) | |
tree | 7a22f61eb04103ad70cc5dc1be3584cd6556bfb9 | |
parent | 55ba953a35651988a3080bfbeb2496049fc39ee5 (diff) |
rtc: omap: remove DRIVER_NAME macro
Remove DRIVER_NAME macro which was used for unrelated strings (e.g.
id-table entry and module name), but not for related ones (e.g. module
name and alias).
Also move the module alias to the other module-info entries.
Signed-off-by: Johan Hovold <johan@kernel.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Benot Cousson <bcousson@baylibre.com>
Cc: Lokesh Vutla <lokeshvutla@ti.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Sekhar Nori <nsekhar@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Tested-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/rtc/rtc-omap.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/rtc/rtc-omap.c b/drivers/rtc/rtc-omap.c index 1da610b8981f..f70ae660368b 100644 --- a/drivers/rtc/rtc-omap.c +++ b/drivers/rtc/rtc-omap.c | |||
@@ -39,8 +39,6 @@ | |||
39 | * the SoC). See the BOARD-SPECIFIC CUSTOMIZATION comment. | 39 | * the SoC). See the BOARD-SPECIFIC CUSTOMIZATION comment. |
40 | */ | 40 | */ |
41 | 41 | ||
42 | #define DRIVER_NAME "omap_rtc" | ||
43 | |||
44 | /* RTC registers */ | 42 | /* RTC registers */ |
45 | #define OMAP_RTC_SECONDS_REG 0x00 | 43 | #define OMAP_RTC_SECONDS_REG 0x00 |
46 | #define OMAP_RTC_MINUTES_REG 0x04 | 44 | #define OMAP_RTC_MINUTES_REG 0x04 |
@@ -360,7 +358,7 @@ static struct rtc_class_ops omap_rtc_ops = { | |||
360 | 358 | ||
361 | static const struct platform_device_id omap_rtc_devtype[] = { | 359 | static const struct platform_device_id omap_rtc_devtype[] = { |
362 | { | 360 | { |
363 | .name = DRIVER_NAME, | 361 | .name = "omap_rtc", |
364 | }, | 362 | }, |
365 | [OMAP_RTC_DATA_AM3352_IDX] = { | 363 | [OMAP_RTC_DATA_AM3352_IDX] = { |
366 | .name = "am3352-rtc", | 364 | .name = "am3352-rtc", |
@@ -587,12 +585,11 @@ static void omap_rtc_shutdown(struct platform_device *pdev) | |||
587 | rtc_write(rtc, OMAP_RTC_INTERRUPTS_REG, 0); | 585 | rtc_write(rtc, OMAP_RTC_INTERRUPTS_REG, 0); |
588 | } | 586 | } |
589 | 587 | ||
590 | MODULE_ALIAS("platform:omap_rtc"); | ||
591 | static struct platform_driver omap_rtc_driver = { | 588 | static struct platform_driver omap_rtc_driver = { |
592 | .remove = __exit_p(omap_rtc_remove), | 589 | .remove = __exit_p(omap_rtc_remove), |
593 | .shutdown = omap_rtc_shutdown, | 590 | .shutdown = omap_rtc_shutdown, |
594 | .driver = { | 591 | .driver = { |
595 | .name = DRIVER_NAME, | 592 | .name = "omap_rtc", |
596 | .owner = THIS_MODULE, | 593 | .owner = THIS_MODULE, |
597 | .pm = &omap_rtc_pm_ops, | 594 | .pm = &omap_rtc_pm_ops, |
598 | .of_match_table = omap_rtc_of_match, | 595 | .of_match_table = omap_rtc_of_match, |
@@ -602,5 +599,6 @@ static struct platform_driver omap_rtc_driver = { | |||
602 | 599 | ||
603 | module_platform_driver_probe(omap_rtc_driver, omap_rtc_probe); | 600 | module_platform_driver_probe(omap_rtc_driver, omap_rtc_probe); |
604 | 601 | ||
602 | MODULE_ALIAS("platform:omap_rtc"); | ||
605 | MODULE_AUTHOR("George G. Davis (and others)"); | 603 | MODULE_AUTHOR("George G. Davis (and others)"); |
606 | MODULE_LICENSE("GPL"); | 604 | MODULE_LICENSE("GPL"); |