]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
sh/PCI: move fixup hooks from __init to __devinit
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>
Sun, 3 Jun 2012 18:48:25 +0000 (20:48 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 16 Jun 2012 18:44:30 +0000 (12:44 -0600)
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: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
arch/sh/drivers/pci/fixups-dreamcast.c

index edeea8960c303840c2a81483a91ea17a2e22672a..a5fe1b54c952598090fac62b46f31970552a35fc 100644 (file)
@@ -28,7 +28,7 @@
 #include <asm/irq.h>
 #include <mach/pci.h>
 
-static void __init gapspci_fixup_resources(struct pci_dev *dev)
+static void __devinit gapspci_fixup_resources(struct pci_dev *dev)
 {
        struct pci_channel *p = dev->sysdata;