Skip to content

Commit

Permalink
h8300: irqchip: fix warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yoshinori Sato committed Aug 22, 2018
1 parent c489dfe commit 558e669
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/irqchip/irq-renesas-h8s.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <asm/io.h>

static void *intc_baseaddr;
#define IPRA ((unsigned long)intc_baseaddr)
#define IPRA (intc_baseaddr)

static const unsigned char ipr_table[] = {
0x03, 0x02, 0x01, 0x00, 0x13, 0x12, 0x11, 0x10, /* 16 - 23 */
Expand All @@ -34,7 +34,7 @@ static const unsigned char ipr_table[] = {
static void h8s_disable_irq(struct irq_data *data)
{
int pos;
unsigned int addr;
void __iomem *addr;
unsigned short pri;
int irq = data->irq;

Expand All @@ -48,7 +48,7 @@ static void h8s_disable_irq(struct irq_data *data)
static void h8s_enable_irq(struct irq_data *data)
{
int pos;
unsigned int addr;
void __iomem *addr;
unsigned short pri;
int irq = data->irq;

Expand Down

0 comments on commit 558e669

Please sign in to comment.