aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2007-05-07 03:01:38 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-05-07 03:01:38 -0400
commita6009dda97776d50166e7f1e378cf553a1c20309 (patch)
tree386f03baa63939937f0ec98e9d20351bd1871eea /arch/sparc64
parent23abc9ec6a4fbcb3da5475f9f4c25415c466de08 (diff)
[SPARC64]: Fix section mismatch warnings in arch/sparc64/kernel/pci.c
apb_calc_first_last(), apb_fake_ranges(), pci_of_scan_bus(), of_scan_pci_bridge(), pci_of_scan_bus(), and pci_scan_one_pbm() should all be __devinit. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64')
-rw-r--r--arch/sparc64/kernel/pci.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/arch/sparc64/kernel/pci.c b/arch/sparc64/kernel/pci.c
index a72a3c312d33..af2c7ff01eeb 100644
--- a/arch/sparc64/kernel/pci.c
+++ b/arch/sparc64/kernel/pci.c
@@ -477,7 +477,7 @@ struct pci_dev *of_create_pci_dev(struct pci_pbm_info *pbm,
477 return dev; 477 return dev;
478} 478}
479 479
480static void __init apb_calc_first_last(u8 map, u32 *first_p, u32 *last_p) 480static void __devinit apb_calc_first_last(u8 map, u32 *first_p, u32 *last_p)
481{ 481{
482 u32 idx, first, last; 482 u32 idx, first, last;
483 483
@@ -506,9 +506,9 @@ static void __init pci_resource_adjust(struct resource *res,
506/* Cook up fake bus resources for SUNW,simba PCI bridges which lack 506/* Cook up fake bus resources for SUNW,simba PCI bridges which lack
507 * a proper 'ranges' property. 507 * a proper 'ranges' property.
508 */ 508 */
509static void __init apb_fake_ranges(struct pci_dev *dev, 509static void __devinit apb_fake_ranges(struct pci_dev *dev,
510 struct pci_bus *bus, 510 struct pci_bus *bus,
511 struct pci_pbm_info *pbm) 511 struct pci_pbm_info *pbm)
512{ 512{
513 struct resource *res; 513 struct resource *res;
514 u32 first, last; 514 u32 first, last;
@@ -531,15 +531,15 @@ static void __init apb_fake_ranges(struct pci_dev *dev,
531 pci_resource_adjust(res, &pbm->mem_space); 531 pci_resource_adjust(res, &pbm->mem_space);
532} 532}
533 533
534static void __init pci_of_scan_bus(struct pci_pbm_info *pbm, 534static void __devinit pci_of_scan_bus(struct pci_pbm_info *pbm,
535 struct device_node *node, 535 struct device_node *node,
536 struct pci_bus *bus); 536 struct pci_bus *bus);
537 537
538#define GET_64BIT(prop, i) ((((u64) (prop)[(i)]) << 32) | (prop)[(i)+1]) 538#define GET_64BIT(prop, i) ((((u64) (prop)[(i)]) << 32) | (prop)[(i)+1])
539 539
540void __devinit of_scan_pci_bridge(struct pci_pbm_info *pbm, 540static void __devinit of_scan_pci_bridge(struct pci_pbm_info *pbm,
541 struct device_node *node, 541 struct device_node *node,
542 struct pci_dev *dev) 542 struct pci_dev *dev)
543{ 543{
544 struct pci_bus *bus; 544 struct pci_bus *bus;
545 const u32 *busrange, *ranges; 545 const u32 *busrange, *ranges;
@@ -638,9 +638,9 @@ simba_cont:
638 pci_of_scan_bus(pbm, node, bus); 638 pci_of_scan_bus(pbm, node, bus);
639} 639}
640 640
641static void __init pci_of_scan_bus(struct pci_pbm_info *pbm, 641static void __devinit pci_of_scan_bus(struct pci_pbm_info *pbm,
642 struct device_node *node, 642 struct device_node *node,
643 struct pci_bus *bus) 643 struct pci_bus *bus)
644{ 644{
645 struct device_node *child; 645 struct device_node *child;
646 const u32 *reg; 646 const u32 *reg;
@@ -742,7 +742,7 @@ int pci_host_bridge_write_pci_cfg(struct pci_bus *bus_dev,
742 return PCIBIOS_SUCCESSFUL; 742 return PCIBIOS_SUCCESSFUL;
743} 743}
744 744
745struct pci_bus * __init pci_scan_one_pbm(struct pci_pbm_info *pbm) 745struct pci_bus * __devinit pci_scan_one_pbm(struct pci_pbm_info *pbm)
746{ 746{
747 struct pci_controller_info *p = pbm->parent; 747 struct pci_controller_info *p = pbm->parent;
748 struct device_node *node = pbm->prom_node; 748 struct device_node *node = pbm->prom_node;