Messages in this thread Patch in this message | | | From | Corentin Labbe <> | Subject | [PATCH 20/20] usb: musb: core: remove useless cast for driver.name | Date | Tue, 18 Feb 2020 19:33:03 +0000 |
| |
device_driver name is const char pointer, so it not useful to cast xx_driver_name (which is already const char).
Signed-off-by: Corentin Labbe <clabbe@baylibre.com> --- drivers/usb/musb/musb_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index f616fb489542..d590110539ab 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -2945,7 +2945,7 @@ static const struct dev_pm_ops musb_dev_pm_ops = { static struct platform_driver musb_driver = { .driver = { - .name = (char *)musb_driver_name, + .name = musb_driver_name, .bus = &platform_bus_type, .pm = MUSB_DEV_PM_OPS, .dev_groups = musb_groups, -- 2.24.1
| |