diff options
author | David S. Miller <davem@davemloft.net> | 2008-08-27 06:38:42 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-08-29 05:15:11 -0400 |
commit | 104364810ff5b0844a2183fbca989f70e86d486b (patch) | |
tree | e7aa24484aefae8ad6ba00d9e0f52ee5bfb384f3 /arch/sparc/kernel | |
parent | 33c4655c00e6af3ec4023f2cafd63dd4a42de49b (diff) |
sparc: Remove SBUS layer resource and irq handling.
All the drivers use OF device objects now for this
information.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel')
-rw-r--r-- | arch/sparc/kernel/ioport.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/arch/sparc/kernel/ioport.c b/arch/sparc/kernel/ioport.c index 0e478301e8e5..d82a810564ba 100644 --- a/arch/sparc/kernel/ioport.c +++ b/arch/sparc/kernel/ioport.c | |||
@@ -394,33 +394,6 @@ void sbus_dma_sync_single_for_device(struct device *dev, dma_addr_t ba, size_t s | |||
394 | } | 394 | } |
395 | 395 | ||
396 | /* Support code for sbus_init(). */ | 396 | /* Support code for sbus_init(). */ |
397 | /* | ||
398 | * XXX This functions appears to be a distorted version of | ||
399 | * prom_sbus_ranges_init(), with all sun4d stuff cut away. | ||
400 | * Ask DaveM what is going on here, how is sun4d supposed to work... XXX | ||
401 | */ | ||
402 | /* added back sun4d patch from Thomas Bogendoerfer - should be OK (crn) */ | ||
403 | void __init sbus_arch_bus_ranges_init(struct device_node *pn, struct sbus_bus *sbus) | ||
404 | { | ||
405 | int parent_node = pn->node; | ||
406 | |||
407 | if (sparc_cpu_model == sun4d) { | ||
408 | struct linux_prom_ranges iounit_ranges[PROMREG_MAX]; | ||
409 | int num_iounit_ranges, len; | ||
410 | |||
411 | len = prom_getproperty(parent_node, "ranges", | ||
412 | (char *) iounit_ranges, | ||
413 | sizeof (iounit_ranges)); | ||
414 | if (len != -1) { | ||
415 | num_iounit_ranges = | ||
416 | (len / sizeof(struct linux_prom_ranges)); | ||
417 | prom_adjust_ranges(sbus->sbus_ranges, | ||
418 | sbus->num_sbus_ranges, | ||
419 | iounit_ranges, num_iounit_ranges); | ||
420 | } | ||
421 | } | ||
422 | } | ||
423 | |||
424 | void __init sbus_setup_iommu(struct sbus_bus *sbus, struct device_node *dp) | 397 | void __init sbus_setup_iommu(struct sbus_bus *sbus, struct device_node *dp) |
425 | { | 398 | { |
426 | #ifndef CONFIG_SUN4 | 399 | #ifndef CONFIG_SUN4 |