Skip to content

Commit 7c8c567

Browse files
montjoieDominik Brodowski
authored andcommitted
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 <[email protected]> Signed-off-by: Dominik Brodowski <[email protected]>
1 parent 2c523b3 commit 7c8c567

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pcmcia/omap_cf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ static int __exit omap_cf_remove(struct platform_device *pdev)
329329

330330
static struct platform_driver omap_cf_driver = {
331331
.driver = {
332-
.name = (char *) driver_name,
332+
.name = driver_name,
333333
},
334334
.remove = __exit_p(omap_cf_remove),
335335
};

0 commit comments

Comments
 (0)