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

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: Pierre Morel <pmorel@linux.ibm.com>
Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>

authored by

Pierre Morel and committed by
Vasily Gorbik
d1379279 0ba57780

+1 -3
+1 -3
arch/s390/pci/pci_bus.c
··· 156 156 } 157 157 158 158 pdev = pci_scan_single_device(bus, zdev->devfn); 159 - if (pdev) { 160 - pdev->multifunction = 1; 159 + if (pdev) 161 160 pci_bus_add_device(pdev); 162 - } 163 161 164 162 return 0; 165 163 }