Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <clabbe@baylibre.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Corentin Labbe and committed by
Lee Jones
9a153b0e 74391043

+2 -2
+1 -1
drivers/mfd/omap-usb-host.c
··· 840 840 841 841 static struct platform_driver usbhs_omap_driver = { 842 842 .driver = { 843 - .name = (char *)usbhs_driver_name, 843 + .name = usbhs_driver_name, 844 844 .pm = &usbhsomap_dev_pm_ops, 845 845 .of_match_table = usbhs_omap_dt_ids, 846 846 },
+1 -1
drivers/mfd/omap-usb-tll.c
··· 304 304 305 305 static struct platform_driver usbtll_omap_driver = { 306 306 .driver = { 307 - .name = (char *)usbtll_driver_name, 307 + .name = usbtll_driver_name, 308 308 .of_match_table = usbtll_omap_dt_ids, 309 309 }, 310 310 .probe = usbtll_omap_probe,