diff options
| author | Ralf Baechle <ralf@linux-mips.org> | 2012-06-03 23:42:04 -0400 |
|---|---|---|
| committer | Ralf Baechle <ralf@linux-mips.org> | 2012-07-23 08:55:55 -0400 |
| commit | f7257d38ebb1bd3b8f80662c67ec7d502ac67421 (patch) | |
| tree | e45a74f9686d2d27be0fd50794455a971746074d | |
| parent | a6196bab646537f594ef269bf9e1c92fe0e165a6 (diff) | |
MIPS: PCI: Add missing __devinit attributions to fixup functions.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| -rw-r--r-- | arch/mips/pci/fixup-cobalt.c | 8 | ||||
| -rw-r--r-- | arch/mips/pci/fixup-rc32434.c | 2 | ||||
| -rw-r--r-- | arch/mips/pci/ops-bcm63xx.c | 2 | ||||
| -rw-r--r-- | arch/mips/txx9/generic/pci.c | 6 |
4 files changed, 9 insertions, 9 deletions
diff --git a/arch/mips/pci/fixup-cobalt.c b/arch/mips/pci/fixup-cobalt.c index 9553b14002dd..3e7ce65d776c 100644 --- a/arch/mips/pci/fixup-cobalt.c +++ b/arch/mips/pci/fixup-cobalt.c | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | #define VIA_COBALT_BRD_ID_REG 0x94 | 37 | #define VIA_COBALT_BRD_ID_REG 0x94 |
| 38 | #define VIA_COBALT_BRD_REG_to_ID(reg) ((unsigned char)(reg) >> 4) | 38 | #define VIA_COBALT_BRD_REG_to_ID(reg) ((unsigned char)(reg) >> 4) |
| 39 | 39 | ||
| 40 | static void qube_raq_galileo_early_fixup(struct pci_dev *dev) | 40 | static void __devinit qube_raq_galileo_early_fixup(struct pci_dev *dev) |
| 41 | { | 41 | { |
| 42 | if (dev->devfn == PCI_DEVFN(0, 0) && | 42 | if (dev->devfn == PCI_DEVFN(0, 0) && |
| 43 | (dev->class >> 8) == PCI_CLASS_MEMORY_OTHER) { | 43 | (dev->class >> 8) == PCI_CLASS_MEMORY_OTHER) { |
| @@ -51,7 +51,7 @@ static void qube_raq_galileo_early_fixup(struct pci_dev *dev) | |||
| 51 | DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_MARVELL, PCI_DEVICE_ID_MARVELL_GT64111, | 51 | DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_MARVELL, PCI_DEVICE_ID_MARVELL_GT64111, |
| 52 | qube_raq_galileo_early_fixup); | 52 | qube_raq_galileo_early_fixup); |
| 53 | 53 | ||
| 54 | static void qube_raq_via_bmIDE_fixup(struct pci_dev *dev) | 54 | static void __devinit qube_raq_via_bmIDE_fixup(struct pci_dev *dev) |
| 55 | { | 55 | { |
| 56 | unsigned short cfgword; | 56 | unsigned short cfgword; |
| 57 | unsigned char lt; | 57 | unsigned char lt; |
| @@ -74,7 +74,7 @@ static void qube_raq_via_bmIDE_fixup(struct pci_dev *dev) | |||
| 74 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C586_1, | 74 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C586_1, |
| 75 | qube_raq_via_bmIDE_fixup); | 75 | qube_raq_via_bmIDE_fixup); |
| 76 | 76 | ||
| 77 | static void qube_raq_galileo_fixup(struct pci_dev *dev) | 77 | static void __devinit qube_raq_galileo_fixup(struct pci_dev *dev) |
| 78 | { | 78 | { |
| 79 | if (dev->devfn != PCI_DEVFN(0, 0)) | 79 | if (dev->devfn != PCI_DEVFN(0, 0)) |
| 80 | return; | 80 | return; |
| @@ -129,7 +129,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_MARVELL, PCI_DEVICE_ID_MARVELL_GT64111, | |||
| 129 | 129 | ||
| 130 | int cobalt_board_id; | 130 | int cobalt_board_id; |
| 131 | 131 | ||
| 132 | static void qube_raq_via_board_id_fixup(struct pci_dev *dev) | 132 | static void __devinit qube_raq_via_board_id_fixup(struct pci_dev *dev) |
| 133 | { | 133 | { |
| 134 | u8 id; | 134 | u8 id; |
| 135 | int retval; | 135 | int retval; |
diff --git a/arch/mips/pci/fixup-rc32434.c b/arch/mips/pci/fixup-rc32434.c index 3d86823d03a0..76bb1be99d43 100644 --- a/arch/mips/pci/fixup-rc32434.c +++ b/arch/mips/pci/fixup-rc32434.c | |||
| @@ -47,7 +47,7 @@ int __devinit pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) | |||
| 47 | return irq + GROUP4_IRQ_BASE + 4; | 47 | return irq + GROUP4_IRQ_BASE + 4; |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | static void rc32434_pci_early_fixup(struct pci_dev *dev) | 50 | static void __devinit rc32434_pci_early_fixup(struct pci_dev *dev) |
| 51 | { | 51 | { |
| 52 | if (PCI_SLOT(dev->devfn) == 6 && dev->bus->number == 0) { | 52 | if (PCI_SLOT(dev->devfn) == 6 && dev->bus->number == 0) { |
| 53 | /* disable prefetched memory range */ | 53 | /* disable prefetched memory range */ |
diff --git a/arch/mips/pci/ops-bcm63xx.c b/arch/mips/pci/ops-bcm63xx.c index 822ae179bc56..097239ba4bc9 100644 --- a/arch/mips/pci/ops-bcm63xx.c +++ b/arch/mips/pci/ops-bcm63xx.c | |||
| @@ -411,7 +411,7 @@ struct pci_ops bcm63xx_cb_ops = { | |||
| 411 | * only one IO window, so it cannot be shared by PCI and cardbus, use | 411 | * only one IO window, so it cannot be shared by PCI and cardbus, use |
| 412 | * fixup to choose and detect unhandled configuration | 412 | * fixup to choose and detect unhandled configuration |
| 413 | */ | 413 | */ |
| 414 | static void bcm63xx_fixup(struct pci_dev *dev) | 414 | static void __devinit bcm63xx_fixup(struct pci_dev *dev) |
| 415 | { | 415 | { |
| 416 | static int io_window = -1; | 416 | static int io_window = -1; |
| 417 | int i, found, new_io_window; | 417 | int i, found, new_io_window; |
diff --git a/arch/mips/txx9/generic/pci.c b/arch/mips/txx9/generic/pci.c index 64eb71b15280..bab4953c292c 100644 --- a/arch/mips/txx9/generic/pci.c +++ b/arch/mips/txx9/generic/pci.c | |||
| @@ -304,7 +304,7 @@ static void __devinit quirk_slc90e66_bridge(struct pci_dev *dev) | |||
| 304 | smsc_fdc37m81x_config_end(); | 304 | smsc_fdc37m81x_config_end(); |
| 305 | } | 305 | } |
| 306 | 306 | ||
| 307 | static void quirk_slc90e66_ide(struct pci_dev *dev) | 307 | static void __devinit quirk_slc90e66_ide(struct pci_dev *dev) |
| 308 | { | 308 | { |
| 309 | unsigned char dat; | 309 | unsigned char dat; |
| 310 | int regs[2] = {0x41, 0x43}; | 310 | int regs[2] = {0x41, 0x43}; |
| @@ -339,7 +339,7 @@ static void quirk_slc90e66_ide(struct pci_dev *dev) | |||
| 339 | } | 339 | } |
| 340 | #endif /* CONFIG_TOSHIBA_FPCIB0 */ | 340 | #endif /* CONFIG_TOSHIBA_FPCIB0 */ |
| 341 | 341 | ||
| 342 | static void tc35815_fixup(struct pci_dev *dev) | 342 | static void __devinit tc35815_fixup(struct pci_dev *dev) |
| 343 | { | 343 | { |
| 344 | /* This device may have PM registers but not they are not suported. */ | 344 | /* This device may have PM registers but not they are not suported. */ |
| 345 | if (dev->pm_cap) { | 345 | if (dev->pm_cap) { |
| @@ -348,7 +348,7 @@ static void tc35815_fixup(struct pci_dev *dev) | |||
| 348 | } | 348 | } |
| 349 | } | 349 | } |
| 350 | 350 | ||
| 351 | static void final_fixup(struct pci_dev *dev) | 351 | static void __devinit final_fixup(struct pci_dev *dev) |
| 352 | { | 352 | { |
| 353 | unsigned char bist; | 353 | unsigned char bist; |
| 354 | 354 | ||
