Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231344
b: refs/heads/master
c: cb55bc5
h: refs/heads/master
v: v3
  • Loading branch information
Lennert Buytenhek committed Jan 13, 2011
1 parent cc8f090 commit fc156d1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7940848aab2d16f1f6a7e77b957e40d10465f38a
refs/heads/master: cb55bc5f1b7d7a5fd8bfc901bca0ed099ee0e1e9
24 changes: 12 additions & 12 deletions trunk/arch/arm/mach-stmp37xx/stmp37xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
/*
* IRQ handling
*/
static void stmp37xx_ack_irq(unsigned int irq)
static void stmp37xx_ack_irq(struct irq_data *d)
{
/* Disable IRQ */
stmp3xxx_clearl(0x04 << ((irq % 4) * 8),
REGS_ICOLL_BASE + HW_ICOLL_PRIORITYn + irq / 4 * 0x10);
stmp3xxx_clearl(0x04 << ((d->irq % 4) * 8),
REGS_ICOLL_BASE + HW_ICOLL_PRIORITYn + d->irq / 4 * 0x10);

/* ACK current interrupt */
__raw_writel(1, REGS_ICOLL_BASE + HW_ICOLL_LEVELACK);
Expand All @@ -56,24 +56,24 @@ static void stmp37xx_ack_irq(unsigned int irq)
(void)__raw_readl(REGS_ICOLL_BASE + HW_ICOLL_STAT);
}

static void stmp37xx_mask_irq(unsigned int irq)
static void stmp37xx_mask_irq(struct irq_data *d)
{
/* IRQ disable */
stmp3xxx_clearl(0x04 << ((irq % 4) * 8),
REGS_ICOLL_BASE + HW_ICOLL_PRIORITYn + irq / 4 * 0x10);
stmp3xxx_clearl(0x04 << ((d->irq % 4) * 8),
REGS_ICOLL_BASE + HW_ICOLL_PRIORITYn + d->irq / 4 * 0x10);
}

static void stmp37xx_unmask_irq(unsigned int irq)
static void stmp37xx_unmask_irq(struct irq_data *d)
{
/* IRQ enable */
stmp3xxx_setl(0x04 << ((irq % 4) * 8),
REGS_ICOLL_BASE + HW_ICOLL_PRIORITYn + irq / 4 * 0x10);
stmp3xxx_setl(0x04 << ((d->irq % 4) * 8),
REGS_ICOLL_BASE + HW_ICOLL_PRIORITYn + d->irq / 4 * 0x10);
}

static struct irq_chip stmp37xx_chip = {
.ack = stmp37xx_ack_irq,
.mask = stmp37xx_mask_irq,
.unmask = stmp37xx_unmask_irq,
.irq_ack = stmp37xx_ack_irq,
.irq_mask = stmp37xx_mask_irq,
.irq_unmask = stmp37xx_unmask_irq,
};

void __init stmp37xx_init_irq(void)
Expand Down

0 comments on commit fc156d1

Please sign in to comment.