Skip to content

Commit 9a153b0

Browse files
montjoieLee Jones
authored andcommitted
mfd: omap: Remove useless cast for driver.name
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 <[email protected]> Signed-off-by: Lee Jones <[email protected]>
1 parent 7439104 commit 9a153b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/mfd/omap-usb-host.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ MODULE_DEVICE_TABLE(of, usbhs_omap_dt_ids);
840840

841841
static struct platform_driver usbhs_omap_driver = {
842842
.driver = {
843-
.name = (char *)usbhs_driver_name,
843+
.name = usbhs_driver_name,
844844
.pm = &usbhsomap_dev_pm_ops,
845845
.of_match_table = usbhs_omap_dt_ids,
846846
},

drivers/mfd/omap-usb-tll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ MODULE_DEVICE_TABLE(of, usbtll_omap_dt_ids);
304304

305305
static struct platform_driver usbtll_omap_driver = {
306306
.driver = {
307-
.name = (char *)usbtll_driver_name,
307+
.name = usbtll_driver_name,
308308
.of_match_table = usbtll_omap_dt_ids,
309309
},
310310
.probe = usbtll_omap_probe,

0 commit comments

Comments
 (0)