staging: Remove superfluous name casts
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 12 Nov 2013 19:07:19 +0000 (20:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Nov 2013 23:30:33 +0000 (15:30 -0800)
device_driver.name is "const char *"

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dwc2/platform.c
drivers/staging/usbip/vhci_hcd.c

index 76ae6e210f55ea2709d8a3a46a1d01e231461e38..8f0489efdf4034de17c4bace9a39536e589c1c4d 100644 (file)
@@ -134,7 +134,7 @@ MODULE_DEVICE_TABLE(of, dwc2_of_match_table);
 
 static struct platform_driver dwc2_platform_driver = {
        .driver = {
-               .name = (char *)dwc2_driver_name,
+               .name = dwc2_driver_name,
                .of_match_table = dwc2_of_match_table,
        },
        .probe = dwc2_driver_probe,
index e37c6c1a9931f0a9062eadeca15fda66dc7e249c..64cace681ceee1a582377fbbcd0b036f43237e04 100644 (file)
@@ -1107,7 +1107,7 @@ static struct platform_driver vhci_driver = {
        .suspend = vhci_hcd_suspend,
        .resume = vhci_hcd_resume,
        .driver = {
-               .name = (char *) driver_name,
+               .name = driver_name,
                .owner = THIS_MODULE,
        },
 };