Commit e5b9187b authored by Ishizaki Kou's avatar Ishizaki Kou Committed by Paul Mackerras

[POWERPC] Fix celleb pci section warnings

Fix following warnings:
WARNING: vmlinux.o(.text+0x44ad0): Section mismatch: reference to .init.text:.__alloc_bootmem (between '.celleb_setup_phb' and '.celleb_fake_pci_write_config')
WARNING: vmlinux.o(.text+0x44dd8): Section mismatch: reference to .init.text:.free_bootmem (between '.celleb_setup_phb' and '.celleb_fake_pci_write_config')
Signed-off-by: default avatarKou Ishizaki <kou.ishizaki@toshiba.co.jp>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 2b02d139
...@@ -288,7 +288,7 @@ static inline void celleb_setup_pci_base_addrs(struct pci_controller *hose, ...@@ -288,7 +288,7 @@ static inline void celleb_setup_pci_base_addrs(struct pci_controller *hose,
celleb_config_write_fake(config, PCI_COMMAND, 2, val); celleb_config_write_fake(config, PCI_COMMAND, 2, val);
} }
static int __devinit celleb_setup_fake_pci_device(struct device_node *node, static int __init celleb_setup_fake_pci_device(struct device_node *node,
struct pci_controller *hose) struct pci_controller *hose)
{ {
unsigned int rlen; unsigned int rlen;
...@@ -418,7 +418,7 @@ static int __devinit celleb_setup_fake_pci_device(struct device_node *node, ...@@ -418,7 +418,7 @@ static int __devinit celleb_setup_fake_pci_device(struct device_node *node,
return 1; return 1;
} }
static int __devinit phb_set_bus_ranges(struct device_node *dev, static int __init phb_set_bus_ranges(struct device_node *dev,
struct pci_controller *phb) struct pci_controller *phb)
{ {
const int *bus_range; const int *bus_range;
...@@ -434,7 +434,7 @@ static int __devinit phb_set_bus_ranges(struct device_node *dev, ...@@ -434,7 +434,7 @@ static int __devinit phb_set_bus_ranges(struct device_node *dev,
return 0; return 0;
} }
static void __devinit celleb_alloc_private_mem(struct pci_controller *hose) static void __init celleb_alloc_private_mem(struct pci_controller *hose)
{ {
if (mem_init_done) if (mem_init_done)
hose->private_data = hose->private_data =
...@@ -444,7 +444,7 @@ static void __devinit celleb_alloc_private_mem(struct pci_controller *hose) ...@@ -444,7 +444,7 @@ static void __devinit celleb_alloc_private_mem(struct pci_controller *hose)
alloc_bootmem(sizeof(struct celleb_pci_private)); alloc_bootmem(sizeof(struct celleb_pci_private));
} }
int __devinit celleb_setup_phb(struct pci_controller *phb) int __init celleb_setup_phb(struct pci_controller *phb)
{ {
const char *name; const char *name;
struct device_node *dev = phb->arch_data; struct device_node *dev = phb->arch_data;
......
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