Commit MetaInfo

Revisionc493638acdab0e580a07c55087e84fd8fe8da3e9 (tree)
Time2018-08-18 14:31:48
AuthorYoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Log Message

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>

Change Summary

Incremental Difference

--- a/drivers/irqchip/irq-renesas-h8s.c
+++ b/drivers/irqchip/irq-renesas-h8s.c
@@ -12,7 +12,7 @@
1212 #include <asm/io.h>
1313
1414 static void *intc_baseaddr;
15-#define IPRA ((unsigned long)intc_baseaddr)
15+#define IPRA (intc_baseaddr)
1616
1717 static const unsigned char ipr_table[] = {
1818 0x03, 0x02, 0x01, 0x00, 0x13, 0x12, 0x11, 0x10, /* 16 - 23 */
@@ -34,7 +34,7 @@ static const unsigned char ipr_table[] = {
3434 static void h8s_disable_irq(struct irq_data *data)
3535 {
3636 int pos;
37- unsigned int addr;
37+ void __iomem *addr;
3838 unsigned short pri;
3939 int irq = data->irq;
4040
@@ -48,7 +48,7 @@ static void h8s_disable_irq(struct irq_data *data)
4848 static void h8s_enable_irq(struct irq_data *data)
4949 {
5050 int pos;
51- unsigned int addr;
51+ void __iomem *addr;
5252 unsigned short pri;
5353 int irq = data->irq;
5454
Show on old repository browser