diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-08-23 09:17:14 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-08-26 21:16:59 -0400 |
commit | c4aa2563f953d13a9bcf4731b00b0900a45626d7 (patch) | |
tree | d05fd33c5f0e26aca352a0cc2c45c115878bcbc6 /arch/mips/pci/pci.c | |
parent | 4547d224d29a6a9a81df91858c2e26b7f88e02e1 (diff) |
[MIPS] PCI: Remove __devinit attribute from pcibios_fixup_bus.
Since 96bde06a2df1b363206d3cdef53134b84ff37813 several callers of
pcibios_resource_to_bus are no longer marked __devinit resulting in a
pile of modpost warnings if PCI && !HOTPLUG:
MODPOST vmlinux.o
WARNING: vmlinux.o(.text+0x15dde8): Section mismatch: reference to .init.text:pcibios_resource_to_bus (between 'pci_map_rom' and 'pci_map_rom_copy')
WARNING: vmlinux.o(.text+0x15e140): Section mismatch: reference to .init.text:pcibios_resource_to_bus (between 'pci_update_resource' and 'pci_claim_resource')
WARNING: vmlinux.o(.text+0x15f0cc): Section mismatch: reference to .init.text:pcibios_resource_to_bus (between 'pci_setup_cardbus' and 'pci_bus_assign_resources')
WARNING: vmlinux.o(.text+0x15f0f0): Section mismatch: reference to .init.text:pcibios_resource_to_bus (between 'pci_setup_cardbus' and 'pci_bus_assign_resources')
WARNING: vmlinux.o(.text+0x15f114): Section mismatch: reference to .init.text:pcibios_resource_to_bus (between 'pci_setup_cardbus' and 'pci_bus_assign_resources')
WARNING: vmlinux.o(.text+0x15f138): Section mismatch: reference to .init.text:pcibios_resource_to_bus (between 'pci_setup_cardbus' and 'pci_bus_assign_resources')
WARNING: vmlinux.o(.text+0x15f438): Section mismatch: reference to .init.text:pcibios_resource_to_bus (between 'pci_bus_assign_resources' and 'pbus_size_mem')
WARNING: vmlinux.o(.text+0x15f4f4): Section mismatch: reference to .init.text:pcibios_resource_to_bus (between 'pci_bus_assign_resources' and 'pbus_size_mem')
Removing __devinit from pcibios_resource_to_bus make the same necessary
for pcibios_fixup_device_resources as well.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/pci/pci.c')
-rw-r--r-- | arch/mips/pci/pci.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c index 6c2da625a102..403487ed6f15 100644 --- a/arch/mips/pci/pci.c +++ b/arch/mips/pci/pci.c | |||
@@ -230,7 +230,7 @@ int pcibios_enable_device(struct pci_dev *dev, int mask) | |||
230 | return pcibios_plat_dev_init(dev); | 230 | return pcibios_plat_dev_init(dev); |
231 | } | 231 | } |
232 | 232 | ||
233 | static void __devinit pcibios_fixup_device_resources(struct pci_dev *dev, | 233 | static void pcibios_fixup_device_resources(struct pci_dev *dev, |
234 | struct pci_bus *bus) | 234 | struct pci_bus *bus) |
235 | { | 235 | { |
236 | /* Update device resources. */ | 236 | /* Update device resources. */ |
@@ -282,8 +282,7 @@ pcibios_update_irq(struct pci_dev *dev, int irq) | |||
282 | pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); | 282 | pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); |
283 | } | 283 | } |
284 | 284 | ||
285 | void __devinit | 285 | void pcibios_resource_to_bus(struct pci_dev *dev, struct pci_bus_region *region, |
286 | pcibios_resource_to_bus(struct pci_dev *dev, struct pci_bus_region *region, | ||
287 | struct resource *res) | 286 | struct resource *res) |
288 | { | 287 | { |
289 | struct pci_controller *hose = (struct pci_controller *)dev->sysdata; | 288 | struct pci_controller *hose = (struct pci_controller *)dev->sysdata; |