OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e7f1e2
)
macintosh: macio_asic: remove useless cast for driver.name
author
Corentin Labbe
<clabbe@baylibre.com>
Tue, 25 Jan 2022 13:54:21 +0000
(13:54 +0000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Wed, 2 Feb 2022 09:32:11 +0000
(20:32 +1100)
pci_driver name is const char pointer, so the cast it not necessary.
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link:
https://lore.kernel.org/r/20220125135421.4081740-1-clabbe@baylibre.com
drivers/macintosh/macio_asic.c
patch
|
blob
|
history
diff --git
a/drivers/macintosh/macio_asic.c
b/drivers/macintosh/macio_asic.c
index
c1fdf28
..
1943a00
100644
(file)
--- a/
drivers/macintosh/macio_asic.c
+++ b/
drivers/macintosh/macio_asic.c
@@
-756,7
+756,7
@@
MODULE_DEVICE_TABLE (pci, pci_ids);
/* pci driver glue; this is a "new style" PCI driver module */
static struct pci_driver macio_pci_driver = {
- .name =
(char *)
"macio",
+ .name = "macio",
.id_table = pci_ids,
.probe = macio_pci_probe,