projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
045cc22
)
PCI/portdrv: Remove superfluous name cast
author
Geert Uytterhoeven
<geert@linux-m68k.org>
Tue, 12 Nov 2013 19:07:17 +0000
(20:07 +0100)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Fri, 13 Dec 2013 15:44:29 +0000
(08:44 -0700)
device_driver.name is "const char *"
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/portdrv_core.c
patch
|
blob
|
history
diff --git
a/drivers/pci/pcie/portdrv_core.c
b/drivers/pci/pcie/portdrv_core.c
index
0b6e766
..
ce9d9ae
100644
(file)
--- a/
drivers/pci/pcie/portdrv_core.c
+++ b/
drivers/pci/pcie/portdrv_core.c
@@
-554,7
+554,7
@@
int pcie_port_service_register(struct pcie_port_service_driver *new)
if (pcie_ports_disabled)
return -ENODEV;
- new->driver.name =
(char *)
new->name;
+ new->driver.name = new->name;
new->driver.bus = &pcie_port_bus_type;
new->driver.probe = pcie_port_probe_service;
new->driver.remove = pcie_port_remove_service;