[ARM] 4954/1: Orion: fix some function section mismatch
authorNicolas Pitre <nico@cam.org>
Wed, 9 Apr 2008 20:08:35 +0000 (21:08 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 10 Apr 2008 14:27:09 +0000 (15:27 +0100)
Without this, lspci won't work.

Signed-off-by: Nicolas Pitre <nico@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-orion5x/pci.c
arch/arm/plat-orion/pcie.c

index 27b4afc..fdf99fc 100644 (file)
@@ -41,7 +41,7 @@ void __init orion5x_pcie_id(u32 *dev, u32 *rev)
        *rev = orion_pcie_rev(PCIE_BASE);
 }
 
-int orion5x_pcie_local_bus_nr(void)
+int __init orion5x_pcie_local_bus_nr(void)
 {
        return orion_pcie_get_local_bus_nr(PCIE_BASE);
 }
index f01966a..abfda53 100644 (file)
@@ -57,12 +57,12 @@ u32 __init orion_pcie_rev(void __iomem *base)
        return readl(base + PCIE_DEV_REV_OFF) & 0xff;
 }
 
-int __init orion_pcie_link_up(void __iomem *base)
+int orion_pcie_link_up(void __iomem *base)
 {
        return !(readl(base + PCIE_STAT_OFF) & PCIE_STAT_LINK_DOWN);
 }
 
-int __init orion_pcie_get_local_bus_nr(void __iomem *base)
+int orion_pcie_get_local_bus_nr(void __iomem *base)
 {
        u32 stat = readl(base + PCIE_STAT_OFF);