]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pci: Remove pcibios_setup_bus_devices()
authorOliver O'Halloran <oohall@gmail.com>
Mon, 28 Oct 2019 08:54:24 +0000 (19:54 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 6 Jan 2020 05:25:29 +0000 (16:25 +1100)
commitf47f6ef453bda0e1561011be1ce5bfbe1addc918
tree0654a7c6948469f8ce2a3890f5f2165e46f0b87e
parentea38e57360bcea278ae2d6d221cc0abbf56100b4
powerpc/pci: Remove pcibios_setup_bus_devices()

With the previous patch applied pcibios_setup_device() will always be run
when pcibios_bus_add_device() is called. There are several code paths where
pcibios_setup_bus_device() is still called (the PowerPC specific PCI
hotplug support is one) so with just the previous patch applied the setup
can be run multiple times on a device, once before the device is added
to the bus and once after.

There's no need to run the setup in the early case any more so just
remove it entirely.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Tested-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191028085424.12006-3-oohall@gmail.com
arch/powerpc/include/asm/pci.h
arch/powerpc/kernel/pci-common.c
arch/powerpc/kernel/pci-hotplug.c
arch/powerpc/kernel/pci_of_scan.c