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_psycho.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_psycho.c')
-rw-r--r-- | arch/sparc64/kernel/pci_psycho.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/sparc64/kernel/pci_psycho.c b/arch/sparc64/kernel/pci_psycho.c index 1717df549488..c3f212725b04 100644 --- a/arch/sparc64/kernel/pci_psycho.c +++ b/arch/sparc64/kernel/pci_psycho.c | |||
@@ -894,14 +894,6 @@ static void psycho_register_error_handlers(struct pci_controller_info *p) | |||
894 | } | 894 | } |
895 | 895 | ||
896 | /* PSYCHO boot time probing and initialization. */ | 896 | /* PSYCHO boot time probing and initialization. */ |
897 | static void psycho_resource_adjust(struct pci_dev *pdev, | ||
898 | struct resource *res, | ||
899 | struct resource *root) | ||
900 | { | ||
901 | res->start += root->start; | ||
902 | res->end += root->start; | ||
903 | } | ||
904 | |||
905 | static void psycho_base_address_update(struct pci_dev *pdev, int resource) | 897 | static void psycho_base_address_update(struct pci_dev *pdev, int resource) |
906 | { | 898 | { |
907 | struct pci_pbm_info *pbm = pdev->dev.archdata.host_controller; | 899 | struct pci_pbm_info *pbm = pdev->dev.archdata.host_controller; |
@@ -1218,7 +1210,6 @@ void psycho_init(struct device_node *dp, char *model_name) | |||
1218 | p->pbms_same_domain = 0; | 1210 | p->pbms_same_domain = 0; |
1219 | p->scan_bus = psycho_scan_bus; | 1211 | p->scan_bus = psycho_scan_bus; |
1220 | p->base_address_update = psycho_base_address_update; | 1212 | p->base_address_update = psycho_base_address_update; |
1221 | p->resource_adjust = psycho_resource_adjust; | ||
1222 | p->pci_ops = &psycho_ops; | 1213 | p->pci_ops = &psycho_ops; |
1223 | 1214 | ||
1224 | prop = of_find_property(dp, "reg", NULL); | 1215 | prop = of_find_property(dp, "reg", NULL); |