summaryrefslogtreecommitdiff
path: root/drivers/pci/pcie
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2013-11-12 23:07:17 +0400
committerBjorn Helgaas <bhelgaas@google.com>2013-12-13 19:44:29 +0400
commit6f825b73e249a2b46f0349d1f86adfbb3ea703e0 (patch)
treebd1e09615ebebd0c9aa3735c3b698376210455c0 /drivers/pci/pcie
parent045cc22e53a1a0caaa9a0b6b64246d2690049906 (diff)
downloadlinux-6f825b73e249a2b46f0349d1f86adfbb3ea703e0.tar.xz
PCI/portdrv: Remove superfluous name cast
device_driver.name is "const char *" Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pcie')
-rw-r--r--drivers/pci/pcie/portdrv_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pcie/portdrv_core.c b/drivers/pci/pcie/portdrv_core.c
index 0b6e76604068..ce9d9ae17bfd 100644
--- 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;