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_sun4v.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_sun4v.c')
-rw-r--r-- | arch/sparc64/kernel/pci_sun4v.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/sparc64/kernel/pci_sun4v.c b/arch/sparc64/kernel/pci_sun4v.c index 9b57ba1cb947..ce0417e776a1 100644 --- a/arch/sparc64/kernel/pci_sun4v.c +++ b/arch/sparc64/kernel/pci_sun4v.c | |||
@@ -743,14 +743,6 @@ static void pci_sun4v_base_address_update(struct pci_dev *pdev, int resource) | |||
743 | pci_write_config_dword(pdev, where + 4, 0); | 743 | pci_write_config_dword(pdev, where + 4, 0); |
744 | } | 744 | } |
745 | 745 | ||
746 | static void pci_sun4v_resource_adjust(struct pci_dev *pdev, | ||
747 | struct resource *res, | ||
748 | struct resource *root) | ||
749 | { | ||
750 | res->start += root->start; | ||
751 | res->end += root->start; | ||
752 | } | ||
753 | |||
754 | static unsigned long probe_existing_entries(struct pci_pbm_info *pbm, | 746 | static unsigned long probe_existing_entries(struct pci_pbm_info *pbm, |
755 | struct pci_iommu *iommu) | 747 | struct pci_iommu *iommu) |
756 | { | 748 | { |
@@ -1387,7 +1379,6 @@ void sun4v_pci_init(struct device_node *dp, char *model_name) | |||
1387 | 1379 | ||
1388 | p->scan_bus = pci_sun4v_scan_bus; | 1380 | p->scan_bus = pci_sun4v_scan_bus; |
1389 | p->base_address_update = pci_sun4v_base_address_update; | 1381 | p->base_address_update = pci_sun4v_base_address_update; |
1390 | p->resource_adjust = pci_sun4v_resource_adjust; | ||
1391 | #ifdef CONFIG_PCI_MSI | 1382 | #ifdef CONFIG_PCI_MSI |
1392 | p->setup_msi_irq = pci_sun4v_setup_msi_irq; | 1383 | p->setup_msi_irq = pci_sun4v_setup_msi_irq; |
1393 | p->teardown_msi_irq = pci_sun4v_teardown_msi_irq; | 1384 | p->teardown_msi_irq = pci_sun4v_teardown_msi_irq; |