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_schizo.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_schizo.c')
-rw-r--r-- | arch/sparc64/kernel/pci_schizo.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/sparc64/kernel/pci_schizo.c b/arch/sparc64/kernel/pci_schizo.c index dec8dc9499e0..ba9206eb9516 100644 --- a/arch/sparc64/kernel/pci_schizo.c +++ b/arch/sparc64/kernel/pci_schizo.c | |||
@@ -1295,14 +1295,6 @@ static void schizo_base_address_update(struct pci_dev *pdev, int resource) | |||
1295 | pci_write_config_dword(pdev, where + 4, 0); | 1295 | pci_write_config_dword(pdev, where + 4, 0); |
1296 | } | 1296 | } |
1297 | 1297 | ||
1298 | static void schizo_resource_adjust(struct pci_dev *pdev, | ||
1299 | struct resource *res, | ||
1300 | struct resource *root) | ||
1301 | { | ||
1302 | res->start += root->start; | ||
1303 | res->end += root->start; | ||
1304 | } | ||
1305 | |||
1306 | #define SCHIZO_STRBUF_CONTROL (0x02800UL) | 1298 | #define SCHIZO_STRBUF_CONTROL (0x02800UL) |
1307 | #define SCHIZO_STRBUF_FLUSH (0x02808UL) | 1299 | #define SCHIZO_STRBUF_FLUSH (0x02808UL) |
1308 | #define SCHIZO_STRBUF_FSYNC (0x02810UL) | 1300 | #define SCHIZO_STRBUF_FSYNC (0x02810UL) |
@@ -1670,7 +1662,6 @@ static void __schizo_init(struct device_node *dp, char *model_name, int chip_typ | |||
1670 | p->index = pci_num_controllers++; | 1662 | p->index = pci_num_controllers++; |
1671 | p->scan_bus = schizo_scan_bus; | 1663 | p->scan_bus = schizo_scan_bus; |
1672 | p->base_address_update = schizo_base_address_update; | 1664 | p->base_address_update = schizo_base_address_update; |
1673 | p->resource_adjust = schizo_resource_adjust; | ||
1674 | p->pci_ops = &schizo_ops; | 1665 | p->pci_ops = &schizo_ops; |
1675 | 1666 | ||
1676 | /* Like PSYCHO we have a 2GB aligned area for memory space. */ | 1667 | /* Like PSYCHO we have a 2GB aligned area for memory space. */ |