usb: gadget: remove superfluous name casts
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 12 Nov 2013 19:07:24 +0000 (20:07 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 26 Nov 2013 16:58:16 +0000 (10:58 -0600)
device_driver.name is "const char *"

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

index 807127d56fa3d94b26c9206c48ff756086cf57df..6315ee698d4dbc9cb17d0a64c5fd064446ded22c 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 36ac7cfba91df850224c96a397fe06838b071720..b7dea4eec32ccd1363436b6ed89d823e6501a132 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,