diff options
author | Yoshinori Sato <ysato@users.sourceforge.jp> | 2018-08-12 21:07:46 -0400 |
---|---|---|
committer | Yoshinori Sato <ysato@users.sourceforge.jp> | 2018-08-22 06:14:19 -0400 |
commit | 558e6694cd4da8db31c2d4850c4823efa5dc77e9 (patch) | |
tree | 6354769468753bf8c4e073e833e690744e19a3f7 | |
parent | c489dfefe739d37dde1cd7b26cd324607cedd934 (diff) |
h8300: irqchip: fix warning
Var "addr" type incorrect.
It have interrupt controler register address.
Type of void __iomem is correct.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
-rw-r--r-- | drivers/irqchip/irq-renesas-h8s.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/irqchip/irq-renesas-h8s.c b/drivers/irqchip/irq-renesas-h8s.c index aed31afb0216..85234d456638 100644 --- a/drivers/irqchip/irq-renesas-h8s.c +++ b/drivers/irqchip/irq-renesas-h8s.c | |||
@@ -12,7 +12,7 @@ | |||
12 | #include <asm/io.h> | 12 | #include <asm/io.h> |
13 | 13 | ||
14 | static void *intc_baseaddr; | 14 | static void *intc_baseaddr; |
15 | #define IPRA ((unsigned long)intc_baseaddr) | 15 | #define IPRA (intc_baseaddr) |
16 | 16 | ||
17 | static const unsigned char ipr_table[] = { | 17 | static const unsigned char ipr_table[] = { |
18 | 0x03, 0x02, 0x01, 0x00, 0x13, 0x12, 0x11, 0x10, /* 16 - 23 */ | 18 | 0x03, 0x02, 0x01, 0x00, 0x13, 0x12, 0x11, 0x10, /* 16 - 23 */ |
@@ -34,7 +34,7 @@ static const unsigned char ipr_table[] = { | |||
34 | static void h8s_disable_irq(struct irq_data *data) | 34 | static void h8s_disable_irq(struct irq_data *data) |
35 | { | 35 | { |
36 | int pos; | 36 | int pos; |
37 | unsigned int addr; | 37 | void __iomem *addr; |
38 | unsigned short pri; | 38 | unsigned short pri; |
39 | int irq = data->irq; | 39 | int irq = data->irq; |
40 | 40 | ||
@@ -48,7 +48,7 @@ static void h8s_disable_irq(struct irq_data *data) | |||
48 | static void h8s_enable_irq(struct irq_data *data) | 48 | static void h8s_enable_irq(struct irq_data *data) |
49 | { | 49 | { |
50 | int pos; | 50 | int pos; |
51 | unsigned int addr; | 51 | void __iomem *addr; |
52 | unsigned short pri; | 52 | unsigned short pri; |
53 | int irq = data->irq; | 53 | int irq = data->irq; |
54 | 54 | ||