device_driver name is const char pointer, so it not useful to cast xx_driver_name (which is already const char).
Unified · Split
| @@ -2945,7 +2945,7 @@ static const struct dev_pm_ops musb_dev_pm_ops = { · 2944 unmodified lines | ||
| 2945 | 2945 | |
| 2946 | 2946 | static struct platform_driver musb_driver = { |
| 2947 | 2947 | .driver = { |
| 2948 | − .name = (char *)musb_driver_name, | |
| 2948 | + .name = musb_driver_name, | |
| 2949 | 2949 | .bus = &platform_bus_type, |
| 2950 | 2950 | .pm = MUSB_DEV_PM_OPS, |
| 2951 | 2951 | .dev_groups = musb_groups, |