aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/pci_sabre.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc64/kernel/pci_sabre.c')
-rw-r--r--arch/sparc64/kernel/pci_sabre.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/arch/sparc64/kernel/pci_sabre.c b/arch/sparc64/kernel/pci_sabre.c
index 2dad171b54e2..64cdce81d86a 100644
--- a/arch/sparc64/kernel/pci_sabre.c
+++ b/arch/sparc64/kernel/pci_sabre.c
@@ -862,22 +862,6 @@ static void sabre_register_error_handlers(struct pci_controller_info *p)
862 sabre_write(base + SABRE_PCICTRL, tmp); 862 sabre_write(base + SABRE_PCICTRL, tmp);
863} 863}
864 864
865static void sabre_resource_adjust(struct pci_dev *pdev,
866 struct resource *res,
867 struct resource *root)
868{
869 struct pci_pbm_info *pbm = pdev->bus->sysdata;
870 unsigned long base;
871
872 if (res->flags & IORESOURCE_IO)
873 base = pbm->controller_regs + SABRE_IOSPACE;
874 else
875 base = pbm->controller_regs + SABRE_MEMSPACE;
876
877 res->start += base;
878 res->end += base;
879}
880
881static void sabre_base_address_update(struct pci_dev *pdev, int resource) 865static void sabre_base_address_update(struct pci_dev *pdev, int resource)
882{ 866{
883 struct pci_pbm_info *pbm = pdev->dev.archdata.host_controller; 867 struct pci_pbm_info *pbm = pdev->dev.archdata.host_controller;
@@ -1116,7 +1100,6 @@ void sabre_init(struct device_node *dp, char *model_name)
1116 p->pbms_same_domain = 1; 1100 p->pbms_same_domain = 1;
1117 p->scan_bus = sabre_scan_bus; 1101 p->scan_bus = sabre_scan_bus;
1118 p->base_address_update = sabre_base_address_update; 1102 p->base_address_update = sabre_base_address_update;
1119 p->resource_adjust = sabre_resource_adjust;
1120 p->pci_ops = &sabre_ops; 1103 p->pci_ops = &sabre_ops;
1121 1104
1122 /* 1105 /*