提交 c823a202 编写于 作者: G Geert Uytterhoeven 提交者: Linus Torvalds

drivers/rtc/rtc-cmos.c: remove superfluous name cast

device_driver.name is "const char *"
Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 dcaf0384
...@@ -1175,7 +1175,7 @@ static struct platform_driver cmos_platform_driver = { ...@@ -1175,7 +1175,7 @@ static struct platform_driver cmos_platform_driver = {
.remove = __exit_p(cmos_platform_remove), .remove = __exit_p(cmos_platform_remove),
.shutdown = cmos_platform_shutdown, .shutdown = cmos_platform_shutdown,
.driver = { .driver = {
.name = (char *) driver_name, .name = driver_name,
#ifdef CONFIG_PM #ifdef CONFIG_PM
.pm = &cmos_pm_ops, .pm = &cmos_pm_ops,
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册