]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/rtc/rtc-cmos.c: remove superfluous name cast
authorGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 3 Jan 2014 03:10:23 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:23 +0000 (14:10 +1100)
device_driver.name is "const char *"

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-cmos.c

index f14876256a4a5d242695746355149703ed743003..ed5540d78a80ca749dd153bace8b7a8c10add4f3 100644 (file)
@@ -1127,7 +1127,7 @@ static struct platform_driver cmos_platform_driver = {
        .remove         = __exit_p(cmos_platform_remove),
        .shutdown       = cmos_platform_shutdown,
        .driver = {
-               .name           = (char *) driver_name,
+               .name           = driver_name,
 #ifdef CONFIG_PM
                .pm             = &cmos_pm_ops,
 #endif