Skip to content

Commit

Permalink
ARM: versatile: irq_data conversion.
Browse files Browse the repository at this point in the history
Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Lennert Buytenhek committed Jan 13, 2011
1 parent 37337a8 commit 80cf22c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions arch/arm/mach-versatile/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,23 +63,25 @@
#define VA_VIC_BASE __io_address(VERSATILE_VIC_BASE)
#define VA_SIC_BASE __io_address(VERSATILE_SIC_BASE)

static void sic_mask_irq(unsigned int irq)
static void sic_mask_irq(struct irq_data *d)
{
irq -= IRQ_SIC_START;
unsigned int irq = d->irq - IRQ_SIC_START;

writel(1 << irq, VA_SIC_BASE + SIC_IRQ_ENABLE_CLEAR);
}

static void sic_unmask_irq(unsigned int irq)
static void sic_unmask_irq(struct irq_data *d)
{
irq -= IRQ_SIC_START;
unsigned int irq = d->irq - IRQ_SIC_START;

writel(1 << irq, VA_SIC_BASE + SIC_IRQ_ENABLE_SET);
}

static struct irq_chip sic_chip = {
.name = "SIC",
.ack = sic_mask_irq,
.mask = sic_mask_irq,
.unmask = sic_unmask_irq,
.name = "SIC",
.irq_ack = sic_mask_irq,
.irq_mask = sic_mask_irq,
.irq_unmask = sic_unmask_irq,
};

static void
Expand Down

0 comments on commit 80cf22c

Please sign in to comment.