diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2007-03-09 01:42:19 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 04:55:14 -0400 |
commit | 0bae5f81b6f8130f5197e59b0e2ad6820c766b2b (patch) | |
tree | e0a7f1e0018941ed6f76ea7ff97ec2506c14b899 /arch/sparc64/kernel/pci_sabre.c | |
parent | 3487a1f9e719d36c9b2d4d492994b2dd815a58b7 (diff) |
[SPARC64]: Kill pci_controller->resource_adjust()
All the implementations can be identical and generic, so
no need for controller specific methods.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/pci_sabre.c')
-rw-r--r-- | arch/sparc64/kernel/pci_sabre.c | 17 |
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 | ||
865 | static 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 | |||
881 | static void sabre_base_address_update(struct pci_dev *pdev, int resource) | 865 | static 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 | /* |