Commit d1379279 authored by Pierre Morel's avatar Pierre Morel Committed by Vasily Gorbik

s390/pci: removes wrong PCI multifunction assignment

The assignment of the PCI device multifunction attribute
is set during the PCI device probe.
There is no need to set it here.

Let's do it right and remove this assignment.
Signed-off-by: default avatarPierre Morel <pmorel@linux.ibm.com>
Reviewed-by: default avatarNiklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent 0ba57780
...@@ -156,10 +156,8 @@ static int zpci_bus_add_device(struct zpci_bus *zbus, struct zpci_dev *zdev) ...@@ -156,10 +156,8 @@ static int zpci_bus_add_device(struct zpci_bus *zbus, struct zpci_dev *zdev)
} }
pdev = pci_scan_single_device(bus, zdev->devfn); pdev = pci_scan_single_device(bus, zdev->devfn);
if (pdev) { if (pdev)
pdev->multifunction = 1;
pci_bus_add_device(pdev); pci_bus_add_device(pdev);
}
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment