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/sun4c_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/sun4c_irq.c')
-rw-r--r-- | arch/sparc/kernel/sun4c_irq.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/sparc/kernel/sun4c_irq.c b/arch/sparc/kernel/sun4c_irq.c index a5a32a0b10d1..a74582455cce 100644 --- a/arch/sparc/kernel/sun4c_irq.c +++ b/arch/sparc/kernel/sun4c_irq.c | |||
@@ -18,6 +18,8 @@ | |||
18 | #include <linux/interrupt.h> | 18 | #include <linux/interrupt.h> |
19 | #include <linux/slab.h> | 19 | #include <linux/slab.h> |
20 | #include <linux/init.h> | 20 | #include <linux/init.h> |
21 | #include <linux/of.h> | ||
22 | #include <linux/of_device.h> | ||
21 | #include "irq.h" | 23 | #include "irq.h" |
22 | 24 | ||
23 | #include <asm/ptrace.h> | 25 | #include <asm/ptrace.h> |
@@ -34,7 +36,6 @@ | |||
34 | #include <asm/sun4paddr.h> | 36 | #include <asm/sun4paddr.h> |
35 | #include <asm/idprom.h> | 37 | #include <asm/idprom.h> |
36 | #include <asm/machines.h> | 38 | #include <asm/machines.h> |
37 | #include <asm/sbus.h> | ||
38 | 39 | ||
39 | #if 0 | 40 | #if 0 |
40 | static struct resource sun4c_timer_eb = { "sun4c_timer" }; | 41 | static struct resource sun4c_timer_eb = { "sun4c_timer" }; |
@@ -224,7 +225,7 @@ void __init sun4c_init_IRQ(void) | |||
224 | memset(&phyres, 0, sizeof(struct resource)); | 225 | memset(&phyres, 0, sizeof(struct resource)); |
225 | phyres.flags = int_regs[0].which_io; | 226 | phyres.flags = int_regs[0].which_io; |
226 | phyres.start = int_regs[0].phys_addr; | 227 | phyres.start = int_regs[0].phys_addr; |
227 | interrupt_enable = (char *) sbus_ioremap(&phyres, 0, | 228 | interrupt_enable = (char *) of_ioremap(&phyres, 0, |
228 | int_regs[0].reg_size, "sun4c_intr"); | 229 | int_regs[0].reg_size, "sun4c_intr"); |
229 | } | 230 | } |
230 | } | 231 | } |