Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Geert Uytterhoeven and committed by
Bjorn Helgaas
6f825b73 045cc22e

+1 -1
+1 -1
drivers/pci/pcie/portdrv_core.c
··· 554 554 if (pcie_ports_disabled) 555 555 return -ENODEV; 556 556 557 - new->driver.name = (char *)new->name; 557 + new->driver.name = new->name; 558 558 new->driver.bus = &pcie_port_bus_type; 559 559 new->driver.probe = pcie_port_probe_service; 560 560 new->driver.remove = pcie_port_remove_service;