diff options
author | David S. Miller <davem@davemloft.net> | 2008-08-27 07:05:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-08-29 05:15:13 -0400 |
commit | 454eeb2dd7bd0418451ea33a606d0fa50aa36718 (patch) | |
tree | b03b762b590343c1c90e83efbec3819c32a95bfb /arch/sparc/kernel/sun4m_irq.c | |
parent | 98261dd1a393777f4400d8ad5a29e97cb30e5422 (diff) |
sparc: Convert remaining sbus_ioremap() and sbus_iounmap() users.
Use of_ioremap() and of_iounmap() instead.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/sun4m_irq.c')
-rw-r--r-- | arch/sparc/kernel/sun4m_irq.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/sparc/kernel/sun4m_irq.c b/arch/sparc/kernel/sun4m_irq.c index d66334b853ef..3481feca3354 100644 --- a/arch/sparc/kernel/sun4m_irq.c +++ b/arch/sparc/kernel/sun4m_irq.c | |||
@@ -20,6 +20,8 @@ | |||
20 | #include <linux/slab.h> | 20 | #include <linux/slab.h> |
21 | #include <linux/init.h> | 21 | #include <linux/init.h> |
22 | #include <linux/ioport.h> | 22 | #include <linux/ioport.h> |
23 | #include <linux/of.h> | ||
24 | #include <linux/of_device.h> | ||
23 | 25 | ||
24 | #include <asm/ptrace.h> | 26 | #include <asm/ptrace.h> |
25 | #include <asm/processor.h> | 27 | #include <asm/processor.h> |
@@ -35,7 +37,6 @@ | |||
35 | #include <asm/smp.h> | 37 | #include <asm/smp.h> |
36 | #include <asm/irq.h> | 38 | #include <asm/irq.h> |
37 | #include <asm/io.h> | 39 | #include <asm/io.h> |
38 | #include <asm/sbus.h> | ||
39 | #include <asm/cacheflush.h> | 40 | #include <asm/cacheflush.h> |
40 | 41 | ||
41 | #include "irq.h" | 42 | #include "irq.h" |
@@ -327,13 +328,13 @@ static void __init sun4m_init_timers(irq_handler_t counter_fn) | |||
327 | /* Map the per-cpu Counter registers. */ | 328 | /* Map the per-cpu Counter registers. */ |
328 | r.flags = cnt_regs[0].which_io; | 329 | r.flags = cnt_regs[0].which_io; |
329 | r.start = cnt_regs[0].phys_addr; | 330 | r.start = cnt_regs[0].phys_addr; |
330 | sun4m_timers = (struct sun4m_timer_regs *) sbus_ioremap(&r, 0, | 331 | sun4m_timers = (struct sun4m_timer_regs *) of_ioremap(&r, 0, |
331 | PAGE_SIZE*SUN4M_NCPUS, "sun4m_cpu_cnt"); | 332 | PAGE_SIZE*SUN4M_NCPUS, "sun4m_cpu_cnt"); |
332 | /* Map the system Counter register. */ | 333 | /* Map the system Counter register. */ |
333 | /* XXX Here we expect consequent calls to yeld adjusent maps. */ | 334 | /* XXX Here we expect consequent calls to yeld adjusent maps. */ |
334 | r.flags = cnt_regs[4].which_io; | 335 | r.flags = cnt_regs[4].which_io; |
335 | r.start = cnt_regs[4].phys_addr; | 336 | r.start = cnt_regs[4].phys_addr; |
336 | sbus_ioremap(&r, 0, cnt_regs[4].reg_size, "sun4m_sys_cnt"); | 337 | of_ioremap(&r, 0, cnt_regs[4].reg_size, "sun4m_sys_cnt"); |
337 | 338 | ||
338 | sun4m_timers->l10_timer_limit = (((1000000/HZ) + 1) << 10); | 339 | sun4m_timers->l10_timer_limit = (((1000000/HZ) + 1) << 10); |
339 | master_l10_counter = &sun4m_timers->l10_cur_count; | 340 | master_l10_counter = &sun4m_timers->l10_cur_count; |
@@ -411,13 +412,13 @@ void __init sun4m_init_IRQ(void) | |||
411 | /* Map the interrupt registers for all possible cpus. */ | 412 | /* Map the interrupt registers for all possible cpus. */ |
412 | r.flags = int_regs[0].which_io; | 413 | r.flags = int_regs[0].which_io; |
413 | r.start = int_regs[0].phys_addr; | 414 | r.start = int_regs[0].phys_addr; |
414 | sun4m_interrupts = (struct sun4m_intregs *) sbus_ioremap(&r, 0, | 415 | sun4m_interrupts = (struct sun4m_intregs *) of_ioremap(&r, 0, |
415 | PAGE_SIZE*SUN4M_NCPUS, "interrupts_percpu"); | 416 | PAGE_SIZE*SUN4M_NCPUS, "interrupts_percpu"); |
416 | 417 | ||
417 | /* Map the system interrupt control registers. */ | 418 | /* Map the system interrupt control registers. */ |
418 | r.flags = int_regs[4].which_io; | 419 | r.flags = int_regs[4].which_io; |
419 | r.start = int_regs[4].phys_addr; | 420 | r.start = int_regs[4].phys_addr; |
420 | sbus_ioremap(&r, 0, int_regs[4].reg_size, "interrupts_system"); | 421 | of_ioremap(&r, 0, int_regs[4].reg_size, "interrupts_system"); |
421 | 422 | ||
422 | sun4m_interrupts->set = ~SUN4M_INT_MASKALL; | 423 | sun4m_interrupts->set = ~SUN4M_INT_MASKALL; |
423 | for (i = 0; !cpu_find_by_instance(i, NULL, &mid); i++) | 424 | for (i = 0; !cpu_find_by_instance(i, NULL, &mid); i++) |