projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c523b3
)
pcmcia: omap: remove useless cast for driver.name
author
Corentin Labbe
<clabbe@baylibre.com>
Tue, 18 Feb 2020 20:07:16 +0000
(20:07 +0000)
committer
Dominik Brodowski
<linux@dominikbrodowski.net>
Sat, 14 Mar 2020 13:32:02 +0000
(14:32 +0100)
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>
drivers/pcmcia/omap_cf.c
patch
|
blob
|
history
diff --git
a/drivers/pcmcia/omap_cf.c
b/drivers/pcmcia/omap_cf.c
index
0a04eb0
..
d3ef553
100644
(file)
--- a/
drivers/pcmcia/omap_cf.c
+++ b/
drivers/pcmcia/omap_cf.c
@@
-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),
};