aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIshizaki Kou <kou.ishizaki@toshiba.co.jp>2007-07-26 05:59:17 -0400
committerPaul Mackerras <paulus@samba.org>2007-08-16 21:01:50 -0400
commite5b9187b16993e4bb6799185e266f68e26663bee (patch)
tree242a7c12423d9f2bca881ecd3abfadd290a8b669
parent2b02d13996fe28478e45605de9bd8bdca25718de (diff)
[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: Kou Ishizaki <kou.ishizaki@toshiba.co.jp> Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r--arch/powerpc/platforms/celleb/pci.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/powerpc/platforms/celleb/pci.c b/arch/powerpc/platforms/celleb/pci.c
index e9ac19c4bba4..e0d97e02ef1f 100644
--- a/arch/powerpc/platforms/celleb/pci.c
+++ b/arch/powerpc/platforms/celleb/pci.c
@@ -288,8 +288,8 @@ static inline void celleb_setup_pci_base_addrs(struct pci_controller *hose,
288 celleb_config_write_fake(config, PCI_COMMAND, 2, val); 288 celleb_config_write_fake(config, PCI_COMMAND, 2, val);
289} 289}
290 290
291static int __devinit celleb_setup_fake_pci_device(struct device_node *node, 291static int __init celleb_setup_fake_pci_device(struct device_node *node,
292 struct pci_controller *hose) 292 struct pci_controller *hose)
293{ 293{
294 unsigned int rlen; 294 unsigned int rlen;
295 int num_base_addr = 0; 295 int num_base_addr = 0;
@@ -418,8 +418,8 @@ error:
418 return 1; 418 return 1;
419} 419}
420 420
421static int __devinit phb_set_bus_ranges(struct device_node *dev, 421static int __init phb_set_bus_ranges(struct device_node *dev,
422 struct pci_controller *phb) 422 struct pci_controller *phb)
423{ 423{
424 const int *bus_range; 424 const int *bus_range;
425 unsigned int len; 425 unsigned int len;
@@ -434,7 +434,7 @@ static int __devinit phb_set_bus_ranges(struct device_node *dev,
434 return 0; 434 return 0;
435} 435}
436 436
437static void __devinit celleb_alloc_private_mem(struct pci_controller *hose) 437static void __init celleb_alloc_private_mem(struct pci_controller *hose)
438{ 438{
439 if (mem_init_done) 439 if (mem_init_done)
440 hose->private_data = 440 hose->private_data =
@@ -444,7 +444,7 @@ static void __devinit celleb_alloc_private_mem(struct pci_controller *hose)
444 alloc_bootmem(sizeof(struct celleb_pci_private)); 444 alloc_bootmem(sizeof(struct celleb_pci_private));
445} 445}
446 446
447int __devinit celleb_setup_phb(struct pci_controller *phb) 447int __init celleb_setup_phb(struct pci_controller *phb)
448{ 448{
449 const char *name; 449 const char *name;
450 struct device_node *dev = phb->arch_data; 450 struct device_node *dev = phb->arch_data;