Skip to content

Commit

Permalink
pcmcia: omap: remove useless cast for driver.name
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Corentin Labbe authored and Dominik Brodowski committed Mar 14, 2020
1 parent 2c523b3 commit 7c8c567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pcmcia/omap_cf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};
Expand Down

0 comments on commit 7c8c567

Please sign in to comment.