Commit a430ca22 authored by Johan Hovold's avatar Johan Hovold Committed by Linus Torvalds

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: default avatarJohan 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: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 55ba953a
...@@ -39,8 +39,6 @@ ...@@ -39,8 +39,6 @@
* the SoC). See the BOARD-SPECIFIC CUSTOMIZATION comment. * the SoC). See the BOARD-SPECIFIC CUSTOMIZATION comment.
*/ */
#define DRIVER_NAME "omap_rtc"
/* RTC registers */ /* RTC registers */
#define OMAP_RTC_SECONDS_REG 0x00 #define OMAP_RTC_SECONDS_REG 0x00
#define OMAP_RTC_MINUTES_REG 0x04 #define OMAP_RTC_MINUTES_REG 0x04
...@@ -360,7 +358,7 @@ static struct rtc_class_ops omap_rtc_ops = { ...@@ -360,7 +358,7 @@ static struct rtc_class_ops omap_rtc_ops = {
static const struct platform_device_id omap_rtc_devtype[] = { static const struct platform_device_id omap_rtc_devtype[] = {
{ {
.name = DRIVER_NAME, .name = "omap_rtc",
}, },
[OMAP_RTC_DATA_AM3352_IDX] = { [OMAP_RTC_DATA_AM3352_IDX] = {
.name = "am3352-rtc", .name = "am3352-rtc",
...@@ -587,12 +585,11 @@ static void omap_rtc_shutdown(struct platform_device *pdev) ...@@ -587,12 +585,11 @@ static void omap_rtc_shutdown(struct platform_device *pdev)
rtc_write(rtc, OMAP_RTC_INTERRUPTS_REG, 0); rtc_write(rtc, OMAP_RTC_INTERRUPTS_REG, 0);
} }
MODULE_ALIAS("platform:omap_rtc");
static struct platform_driver omap_rtc_driver = { static struct platform_driver omap_rtc_driver = {
.remove = __exit_p(omap_rtc_remove), .remove = __exit_p(omap_rtc_remove),
.shutdown = omap_rtc_shutdown, .shutdown = omap_rtc_shutdown,
.driver = { .driver = {
.name = DRIVER_NAME, .name = "omap_rtc",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.pm = &omap_rtc_pm_ops, .pm = &omap_rtc_pm_ops,
.of_match_table = omap_rtc_of_match, .of_match_table = omap_rtc_of_match,
...@@ -602,5 +599,6 @@ static struct platform_driver omap_rtc_driver = { ...@@ -602,5 +599,6 @@ static struct platform_driver omap_rtc_driver = {
module_platform_driver_probe(omap_rtc_driver, omap_rtc_probe); module_platform_driver_probe(omap_rtc_driver, omap_rtc_probe);
MODULE_ALIAS("platform:omap_rtc");
MODULE_AUTHOR("George G. Davis (and others)"); MODULE_AUTHOR("George G. Davis (and others)");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment