Skip to content

Commit

Permalink
MIPS: PowerTV: Convert to new irq_chip functions
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Gleixner <[email protected]>
To: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/2200/
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
KAGA-KOKO authored and ralfbaechle committed Mar 25, 2011
1 parent 0007b9b commit 2f8d36e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions arch/mips/powertv/asic/irq_asic.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@

#include <asm/mach-powertv/asic_regs.h>

static inline void unmask_asic_irq(unsigned int irq)
static inline void unmask_asic_irq(struct irq_data *d)
{
unsigned long enable_bit;
unsigned int irq = d->irq;

enable_bit = (1 << (irq & 0x1f));

Expand All @@ -45,9 +46,10 @@ static inline void unmask_asic_irq(unsigned int irq)
}
}

static inline void mask_asic_irq(unsigned int irq)
static inline void mask_asic_irq(struct irq_data *d)
{
unsigned long disable_mask;
unsigned int irq = d->irq;

disable_mask = ~(1 << (irq & 0x1f));

Expand All @@ -71,11 +73,8 @@ static inline void mask_asic_irq(unsigned int irq)

static struct irq_chip asic_irq_chip = {
.name = "ASIC Level",
.ack = mask_asic_irq,
.mask = mask_asic_irq,
.mask_ack = mask_asic_irq,
.unmask = unmask_asic_irq,
.eoi = unmask_asic_irq,
.irq_mask = mask_asic_irq,
.irq_unmask = unmask_asic_irq,
};

void __init asic_irq_init(void)
Expand Down

0 comments on commit 2f8d36e

Please sign in to comment.