s390/pci: removes wrong PCI multifunction assignment
authorPierre Morel <pmorel@linux.ibm.com>
Tue, 28 Apr 2020 15:25:56 +0000 (11:25 -0400)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 6 May 2020 12:59:20 +0000 (14:59 +0200)
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>
arch/s390/pci/pci_bus.c

index 542c6b8..ada571d 100644 (file)
@@ -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);
-       if (pdev) {
-               pdev->multifunction = 1;
+       if (pdev)
                pci_bus_add_device(pdev);
-       }
 
        return 0;
 }