Commit 7012255a authored by Ishizaki Kou's avatar Ishizaki Kou Committed by Paul Mackerras

[POWERPC] cell: Fix section mismatches in io-workarounds code

Fix following warnings:
WARNING: arch/powerpc/platforms/cell/built-in.o(.devinit.text+0x9c): Section mismatch in reference from the function .cell_setup_phb() to the function .init.text:.iowa_register_bus()
WARNING: arch/powerpc/platforms/cell/built-in.o(.devinit.text+0xa4): Section mismatch in reference from the function .cell_setup_phb() to the function .init.text:.io_workaround_init()
Signed-off-by: default avatarKou Ishizaki <kou.ishizaki@toshiba.co.jp>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent dfe1e09f
...@@ -118,7 +118,7 @@ static void iowa_##name at \ ...@@ -118,7 +118,7 @@ static void iowa_##name at \
#undef DEF_PCI_AC_RET #undef DEF_PCI_AC_RET
#undef DEF_PCI_AC_NORET #undef DEF_PCI_AC_NORET
static struct ppc_pci_io __initdata iowa_pci_io = { static const struct ppc_pci_io __devinitconst iowa_pci_io = {
#define DEF_PCI_AC_RET(name, ret, at, al, space, aa) .name = iowa_##name, #define DEF_PCI_AC_RET(name, ret, at, al, space, aa) .name = iowa_##name,
#define DEF_PCI_AC_NORET(name, at, al, space, aa) .name = iowa_##name, #define DEF_PCI_AC_NORET(name, at, al, space, aa) .name = iowa_##name,
...@@ -146,7 +146,7 @@ static void __iomem *iowa_ioremap(unsigned long addr, unsigned long size, ...@@ -146,7 +146,7 @@ static void __iomem *iowa_ioremap(unsigned long addr, unsigned long size,
} }
/* Regist new bus to support workaround */ /* Regist new bus to support workaround */
void __init iowa_register_bus(struct pci_controller *phb, void __devinit iowa_register_bus(struct pci_controller *phb,
struct ppc_pci_io *ops, struct ppc_pci_io *ops,
int (*initfunc)(struct iowa_bus *, void *), void *data) int (*initfunc)(struct iowa_bus *, void *), void *data)
{ {
...@@ -173,7 +173,7 @@ void __init iowa_register_bus(struct pci_controller *phb, ...@@ -173,7 +173,7 @@ void __init iowa_register_bus(struct pci_controller *phb,
} }
/* enable IO workaround */ /* enable IO workaround */
void __init io_workaround_init(void) void __devinit io_workaround_init(void)
{ {
static int io_workaround_inited; static int io_workaround_inited;
......
...@@ -31,9 +31,9 @@ struct iowa_bus { ...@@ -31,9 +31,9 @@ struct iowa_bus {
void *private; void *private;
}; };
void __init io_workaround_init(void); void __devinit io_workaround_init(void);
void __init iowa_register_bus(struct pci_controller *, struct ppc_pci_io *, void __devinit iowa_register_bus(struct pci_controller *, struct ppc_pci_io *,
int (*)(struct iowa_bus *, void *), void *); int (*)(struct iowa_bus *, void *), void *);
struct iowa_bus *iowa_mem_find_bus(const PCI_IO_ADDR); struct iowa_bus *iowa_mem_find_bus(const PCI_IO_ADDR);
struct iowa_bus *iowa_pio_find_bus(unsigned long); struct iowa_bus *iowa_pio_find_bus(unsigned long);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment