diff options
Diffstat (limited to 'arch/sparc64/kernel/pci.c')
-rw-r--r-- | arch/sparc64/kernel/pci.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/arch/sparc64/kernel/pci.c b/arch/sparc64/kernel/pci.c index a72a3c312d3..af2c7ff01ee 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 | ||
480 | static void __init apb_calc_first_last(u8 map, u32 *first_p, u32 *last_p) | 480 | static 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 | */ |
509 | static void __init apb_fake_ranges(struct pci_dev *dev, | 509 | static 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 | ||
534 | static void __init pci_of_scan_bus(struct pci_pbm_info *pbm, | 534 | static 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 | ||
540 | void __devinit of_scan_pci_bridge(struct pci_pbm_info *pbm, | 540 | static 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 | ||
641 | static void __init pci_of_scan_bus(struct pci_pbm_info *pbm, | 641 | static 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 | ||
745 | struct pci_bus * __init pci_scan_one_pbm(struct pci_pbm_info *pbm) | 745 | struct 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; |