提交 6f825b73 编写于 作者: G Geert Uytterhoeven 提交者: Bjorn Helgaas

PCI/portdrv: Remove superfluous name cast

device_driver.name is "const char *"
Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
上级 045cc22e
...@@ -554,7 +554,7 @@ int pcie_port_service_register(struct pcie_port_service_driver *new) ...@@ -554,7 +554,7 @@ int pcie_port_service_register(struct pcie_port_service_driver *new)
if (pcie_ports_disabled) if (pcie_ports_disabled)
return -ENODEV; return -ENODEV;
new->driver.name = (char *)new->name; new->driver.name = new->name;
new->driver.bus = &pcie_port_bus_type; new->driver.bus = &pcie_port_bus_type;
new->driver.probe = pcie_port_probe_service; new->driver.probe = pcie_port_probe_service;
new->driver.remove = pcie_port_remove_service; new->driver.remove = pcie_port_remove_service;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册