diff options
author | Corentin Labbe <clabbe@baylibre.com> | 2020-02-18 20:33:00 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-19 11:10:27 +0100 |
commit | bb7458c2f4a90c8ff666f0412d4b11be01e5a9f6 (patch) | |
tree | 81bf8df4d7b2c61d7ea5b8fa38f857b8673d3888 /drivers/usb/host/sl811-hcd.c | |
parent | usb: host: ohci-pci: remove useless cast for driver.name (diff) | |
download | linux-bb7458c2f4a90c8ff666f0412d4b11be01e5a9f6.tar.xz linux-bb7458c2f4a90c8ff666f0412d4b11be01e5a9f6.zip |
usb: host: sl811-hcd: remove useless cast for driver.name
device_driver name is const char pointer, so it not useful to cast
hcd_name (which is already const char).
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Link: https://lore.kernel.org/r/1582054383-35760-18-git-send-email-clabbe@baylibre.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/sl811-hcd.c')
-rw-r--r-- | drivers/usb/host/sl811-hcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c index 72a34a1eb618..adaf4063690a 100644 --- a/drivers/usb/host/sl811-hcd.c +++ b/drivers/usb/host/sl811-hcd.c @@ -1792,7 +1792,7 @@ struct platform_driver sl811h_driver = { .suspend = sl811h_suspend, .resume = sl811h_resume, .driver = { - .name = (char *) hcd_name, + .name = hcd_name, }, }; EXPORT_SYMBOL(sl811h_driver); |