diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 02:42:07 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 02:42:07 -0400 |
commit | c825abc4c7b5e3e25b191c877cd0ca45cfaa824b (patch) | |
tree | cf46c02fa0de40b64b79d68f30403bdd53d928ab /arch | |
parent | b6bd263397decbcac5e1c836154a53c14b80f530 (diff) |
sh: sh7785lcr evt2irq migration.
Migrate sh7785lcr to evt2irq backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/boards/board-sh7785lcr.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/sh/boards/board-sh7785lcr.c b/arch/sh/boards/board-sh7785lcr.c index d0d6221d7c2e..2c4771ee84cd 100644 --- a/arch/sh/boards/board-sh7785lcr.c +++ b/arch/sh/boards/board-sh7785lcr.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/i2c-pca-platform.h> | 20 | #include <linux/i2c-pca-platform.h> |
21 | #include <linux/i2c-algo-pca.h> | 21 | #include <linux/i2c-algo-pca.h> |
22 | #include <linux/usb/r8a66597.h> | 22 | #include <linux/usb/r8a66597.h> |
23 | #include <linux/sh_intc.h> | ||
23 | #include <linux/irq.h> | 24 | #include <linux/irq.h> |
24 | #include <linux/io.h> | 25 | #include <linux/io.h> |
25 | #include <linux/clk.h> | 26 | #include <linux/clk.h> |
@@ -105,8 +106,8 @@ static struct resource r8a66597_usb_host_resources[] = { | |||
105 | .flags = IORESOURCE_MEM, | 106 | .flags = IORESOURCE_MEM, |
106 | }, | 107 | }, |
107 | [1] = { | 108 | [1] = { |
108 | .start = 2, | 109 | .start = evt2irq(0x240), |
109 | .end = 2, | 110 | .end = evt2irq(0x240), |
110 | .flags = IORESOURCE_IRQ | IRQF_TRIGGER_LOW, | 111 | .flags = IORESOURCE_IRQ | IRQF_TRIGGER_LOW, |
111 | }, | 112 | }, |
112 | }; | 113 | }; |
@@ -135,7 +136,7 @@ static struct resource sm501_resources[] = { | |||
135 | .flags = IORESOURCE_MEM, | 136 | .flags = IORESOURCE_MEM, |
136 | }, | 137 | }, |
137 | [2] = { | 138 | [2] = { |
138 | .start = 10, | 139 | .start = evt2irq(0x340), |
139 | .flags = IORESOURCE_IRQ, | 140 | .flags = IORESOURCE_IRQ, |
140 | }, | 141 | }, |
141 | }; | 142 | }; |
@@ -223,8 +224,8 @@ static struct resource i2c_proto_resources[] = { | |||
223 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_8BIT, | 224 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_8BIT, |
224 | }, | 225 | }, |
225 | [1] = { | 226 | [1] = { |
226 | .start = 12, | 227 | .start = evt2irq(0x380), |
227 | .end = 12, | 228 | .end = evt2irq(0x380), |
228 | .flags = IORESOURCE_IRQ, | 229 | .flags = IORESOURCE_IRQ, |
229 | }, | 230 | }, |
230 | }; | 231 | }; |
@@ -236,8 +237,8 @@ static struct resource i2c_resources[] = { | |||
236 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_8BIT, | 237 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_8BIT, |
237 | }, | 238 | }, |
238 | [1] = { | 239 | [1] = { |
239 | .start = 12, | 240 | .start = evt2irq(0x380), |
240 | .end = 12, | 241 | .end = evt2irq(0x380), |
241 | .flags = IORESOURCE_IRQ, | 242 | .flags = IORESOURCE_IRQ, |
242 | }, | 243 | }, |
243 | }; | 244 | }; |