usb: gadget: Remove superfluous name casts
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 12 Nov 2013 19:07:24 +0000 (20:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Dec 2013 19:17:28 +0000 (11:17 -0800)
device_driver.name is "const char *"

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/fsl_qe_udc.c
drivers/usb/gadget/fsl_udc_core.c

index 807127d..6315ee6 100644 (file)
@@ -2717,7 +2717,7 @@ MODULE_DEVICE_TABLE(of, qe_udc_match);
 
 static struct platform_driver udc_driver = {
        .driver = {
-               .name = (char *)driver_name,
+               .name = driver_name,
                .owner = THIS_MODULE,
                .of_match_table = qe_udc_match,
        },
index 36ac7cf..b7dea4e 100644 (file)
@@ -2666,7 +2666,7 @@ static struct platform_driver udc_driver = {
        .suspend        = fsl_udc_suspend,
        .resume         = fsl_udc_resume,
        .driver         = {
-                       .name = (char *)driver_name,
+                       .name = driver_name,
                        .owner = THIS_MODULE,
                        /* udc suspend/resume called from OTG driver */
                        .suspend = fsl_udc_otg_suspend,