summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/udc/r8a66597-udc.c
diff options
context:
space:
mode:
authorCorentin Labbe <clabbe@baylibre.com>2020-02-18 22:32:56 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-19 13:10:26 +0300
commit5803e6e3ead75ac15e89fd96e153e9e168e709b4 (patch)
tree63ad186a5ceaa9f68d579591bd0480a2bc75983a /drivers/usb/gadget/udc/r8a66597-udc.c
parent676edc2074c9dcf8f58e5e79b82002b5a6aebf2c (diff)
downloadlinux-5803e6e3ead75ac15e89fd96e153e9e168e709b4.tar.xz
usb: gadget: r8a66597-udc: remove useless cast for driver.name
device_driver name is const char pointer, so it not useful to cast udc_name (which is already const char). Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Link: https://lore.kernel.org/r/1582054383-35760-14-git-send-email-clabbe@baylibre.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget/udc/r8a66597-udc.c')
-rw-r--r--drivers/usb/gadget/udc/r8a66597-udc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/r8a66597-udc.c b/drivers/usb/gadget/udc/r8a66597-udc.c
index 582a16165ea9..537094b485bf 100644
--- a/drivers/usb/gadget/udc/r8a66597-udc.c
+++ b/drivers/usb/gadget/udc/r8a66597-udc.c
@@ -1968,7 +1968,7 @@ clean_up2:
static struct platform_driver r8a66597_driver = {
.remove = r8a66597_remove,
.driver = {
- .name = (char *) udc_name,
+ .name = udc_name,
},
};