From: Sebastian Andrzej Siewior Date: Sun, 3 Jun 2012 18:48:25 +0000 (+0200) Subject: sh/PCI: move fixup hooks from __init to __devinit X-Git-Tag: v3.6-rc1~112^2~16^2~1 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=1359bac229637cd9e317f6069e5fb3544d64b7ca;p=~emulex%2Finfiniband.git sh/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: Paul Mundt Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Bjorn Helgaas --- diff --git a/arch/sh/drivers/pci/fixups-dreamcast.c b/arch/sh/drivers/pci/fixups-dreamcast.c index edeea8960c3..a5fe1b54c95 100644 --- a/arch/sh/drivers/pci/fixups-dreamcast.c +++ b/arch/sh/drivers/pci/fixups-dreamcast.c @@ -28,7 +28,7 @@ #include #include -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;