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:
parent
2c523b344d
commit
7c8c5673f6
|
@ -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),
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue