diff options
author | Sebastian Andrzej Siewior <sebastian@breakpoint.cc> | 2012-06-03 20:48:24 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2012-06-16 20:44:30 +0200 |
commit | 492bf4f25a1c8e87a6abb0e2edaa532b7fd43b29 (patch) | |
tree | e9c0787fc0192c2abfda96d2f026b02bdfd45d30 /arch/powerpc/sysdev/mv64x60_pci.c | |
parent | frv/PCI: move fixup hooks from __init to __devinit (diff) | |
download | linux-492bf4f25a1c8e87a6abb0e2edaa532b7fd43b29.tar.xz linux-492bf4f25a1c8e87a6abb0e2edaa532b7fd43b29.zip |
powerpc/PCI: move fixup hooks from __init to __devinit
The fixups are executed once the pci-device is found which is during
boot process so __init seems fine as long as the platform does not
support hotplug.
However it is possible to remove the PCI bus at run time and have it
rediscovered again via "echo 1 > /sys/bus/pci/rescan" and this will call
the fixups again.
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'arch/powerpc/sysdev/mv64x60_pci.c')
-rw-r--r-- | arch/powerpc/sysdev/mv64x60_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/mv64x60_pci.c b/arch/powerpc/sysdev/mv64x60_pci.c index b0037cefaada..364b14d4754b 100644 --- a/arch/powerpc/sysdev/mv64x60_pci.c +++ b/arch/powerpc/sysdev/mv64x60_pci.c @@ -104,7 +104,7 @@ subsys_initcall(mv64x60_sysfs_init); #endif /* CONFIG_SYSFS */ -static void __init mv64x60_pci_fixup_early(struct pci_dev *dev) +static void __devinit mv64x60_pci_fixup_early(struct pci_dev *dev) { /* * Set the host bridge hdr_type to an invalid value so that |