diff mbox series

[20/20] usb: musb: core: remove useless cast for driver.name

Message ID 1582054383-35760-21-git-send-email-clabbe@baylibre.com (mailing list archive)
State Mainlined
Commit 2f41c8a25feb822203f92e17f3720397805d0cfd
Headers show
Series usb: remove useless cast for driver.name | expand

Commit Message

Corentin LABBE Feb. 18, 2020, 7:33 p.m. UTC
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 mbox series

Patch

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,