usb: gadget: at91_udc: remove useless cast for driver.name

device_driver name is const char pointer, so it not useful to cast
driver_name (which is already const char).

Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Link: https://lore.kernel.org/r/1582054383-35760-5-git-send-email-clabbe@baylibre.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Corentin Labbe 2020-02-18 19:32:47 +00:00 коммит произвёл Greg Kroah-Hartman
Родитель 511a10910e
Коммит bd69953344
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -2021,7 +2021,7 @@ static struct platform_driver at91_udc_driver = {
.suspend = at91udc_suspend,
.resume = at91udc_resume,
.driver = {
.name = (char *) driver_name,
.name = driver_name,
.of_match_table = at91_udc_dt_ids,
},
};