Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242462
b: refs/heads/master
c: 7ec8af9
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and Ralf Baechle committed Mar 25, 2011
1 parent 8f584b9 commit 097faf1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 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: f8396c17097db5fa6442533000e3e6d30d16dc5d
refs/heads/master: 7ec8af9e3441478472954c43462376dd83302e00
16 changes: 7 additions & 9 deletions trunk/arch/mips/loongson/common/bonito-irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,22 @@

#include <loongson.h>

static inline void bonito_irq_enable(unsigned int irq)
static inline void bonito_irq_enable(struct irq_data *d)
{
LOONGSON_INTENSET = (1 << (irq - LOONGSON_IRQ_BASE));
LOONGSON_INTENSET = (1 << (d->irq - LOONGSON_IRQ_BASE));
mmiowb();
}

static inline void bonito_irq_disable(unsigned int irq)
static inline void bonito_irq_disable(struct irq_data *d)
{
LOONGSON_INTENCLR = (1 << (irq - LOONGSON_IRQ_BASE));
LOONGSON_INTENCLR = (1 << (d->irq - LOONGSON_IRQ_BASE));
mmiowb();
}

static struct irq_chip bonito_irq_type = {
.name = "bonito_irq",
.ack = bonito_irq_disable,
.mask = bonito_irq_disable,
.mask_ack = bonito_irq_disable,
.unmask = bonito_irq_enable,
.name = "bonito_irq",
.irq_mask = bonito_irq_disable,
.irq_unmask = bonito_irq_enable,
};

static struct irqaction __maybe_unused dma_timeout_irqaction = {
Expand Down

0 comments on commit 097faf1

Please sign in to comment.