diff options
author | Dan Williams <dan.j.williams@intel.com> | 2007-05-14 20:03:36 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-05-16 10:35:27 -0400 |
commit | d73d8011779292788def2cd2520d6f39d9b406de (patch) | |
tree | 4a74fca4a1e549091414a0a0cbbc2cf63fcbd64e /arch/arm/plat-iop/pci.c | |
parent | e702a7155d14a6e11645e17d829217ae98fd45bb (diff) |
[ARM] 4383/1: iop: fix usage of '__init' and 'inline' in iop files
WARNING: arch/arm/mach-iop13xx/built-in.o - Section mismatch: reference to
.init.text:iop13xx_pcie_map_irq from .text between 'iop13xx_pci_setup' (at
offset 0x7fc) and 'iop13xx_map_pci_memory'
While fixing this warning I also recalled Adrian Bunk's recommendation to
not use inline in .c files, as 'iop13xx_map_pci_memory' is needlessly
inlined.
Removing 'inline' uncovered some dead code so that is cleaned up as well.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/plat-iop/pci.c')
-rw-r--r-- | arch/arm/plat-iop/pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/plat-iop/pci.c b/arch/arm/plat-iop/pci.c index e2744b7227c5..d3605934f1c7 100644 --- a/arch/arm/plat-iop/pci.c +++ b/arch/arm/plat-iop/pci.c | |||
@@ -88,7 +88,7 @@ static int iop3xx_pci_status(void) | |||
88 | * data. Note that the 4 nop's ensure that we are able to handle | 88 | * data. Note that the 4 nop's ensure that we are able to handle |
89 | * a delayed abort (in theory.) | 89 | * a delayed abort (in theory.) |
90 | */ | 90 | */ |
91 | static inline u32 iop3xx_read(unsigned long addr) | 91 | static u32 iop3xx_read(unsigned long addr) |
92 | { | 92 | { |
93 | u32 val; | 93 | u32 val; |
94 | 94 | ||
@@ -321,7 +321,7 @@ void __init iop3xx_atu_disable(void) | |||
321 | /* Flag to determine whether the ATU is initialized and the PCI bus scanned */ | 321 | /* Flag to determine whether the ATU is initialized and the PCI bus scanned */ |
322 | int init_atu; | 322 | int init_atu; |
323 | 323 | ||
324 | void iop3xx_pci_preinit(void) | 324 | void __init iop3xx_pci_preinit(void) |
325 | { | 325 | { |
326 | if (iop3xx_get_init_atu() == IOP3XX_INIT_ATU_ENABLE) { | 326 | if (iop3xx_get_init_atu() == IOP3XX_INIT_ATU_ENABLE) { |
327 | iop3xx_atu_disable(); | 327 | iop3xx_atu_disable(); |