pcmcia: omap: 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).

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
This commit is contained in:
Corentin Labbe 2020-02-18 20:07:16 +00:00 committed by Dominik Brodowski
parent 2c523b344d
commit 7c8c5673f6
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ static int __exit omap_cf_remove(struct platform_device *pdev)
static struct platform_driver omap_cf_driver = {
.driver = {
.name = (char *) driver_name,
.name = driver_name,
},
.remove = __exit_p(omap_cf_remove),
};