s390/pci: only add specific device in zpci_bus_scan_device()
authorNiklas Schnelle <schnelle@linux.ibm.com>
Mon, 6 Mar 2023 15:10:12 +0000 (16:10 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 13 Mar 2023 08:16:43 +0000 (09:16 +0100)
commitae83707f39e1b8f2a15af3868bba25ce4fa93364
treebf500dcddba843f48889c418081ffa73167662aa
parent029a4f4b9555ddb47f38f9589fd6d43277efb9c6
s390/pci: only add specific device in zpci_bus_scan_device()

As the name suggests zpci_bus_scan_device() is used to scan a specific
device and thus pci_bus_add_device() for that device is sufficient.
Furthermore move this call inside the rescan/remove locking.

Suggested-by: Bjorn Helgaas <helgaas@kernel.org>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Link: https://lore.kernel.org/r/20230306151014.60913-3-schnelle@linux.ibm.com
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/pci/pci_bus.c