Commit 8ed5c00d authored by Kyle McMartin's avatar Kyle McMartin

parisc: convert eisa interrupts to flow handlers

Signed-off-by: default avatarKyle McMartin <kyle@redhat.com>
parent 7998b3bd
...@@ -144,7 +144,7 @@ static unsigned int eisa_irq_level __read_mostly; /* default to edge triggered * ...@@ -144,7 +144,7 @@ static unsigned int eisa_irq_level __read_mostly; /* default to edge triggered *
/* called by free irq */ /* called by free irq */
static void eisa_disable_irq(unsigned int irq) static void eisa_mask_irq(unsigned int irq)
{ {
unsigned long flags; unsigned long flags;
...@@ -164,7 +164,7 @@ static void eisa_disable_irq(unsigned int irq) ...@@ -164,7 +164,7 @@ static void eisa_disable_irq(unsigned int irq)
} }
/* called by request irq */ /* called by request irq */
static void eisa_enable_irq(unsigned int irq) static void eisa_unmask_irq(unsigned int irq)
{ {
unsigned long flags; unsigned long flags;
EISA_DBG("enable irq %d\n", irq); EISA_DBG("enable irq %d\n", irq);
...@@ -182,20 +182,11 @@ static void eisa_enable_irq(unsigned int irq) ...@@ -182,20 +182,11 @@ static void eisa_enable_irq(unsigned int irq)
EISA_DBG("pic1 mask %02x\n", eisa_in8(0xa1)); EISA_DBG("pic1 mask %02x\n", eisa_in8(0xa1));
} }
static unsigned int eisa_startup_irq(unsigned int irq)
{
eisa_enable_irq(irq);
return 0;
}
static struct irq_chip eisa_interrupt_type = { static struct irq_chip eisa_interrupt_type = {
.name = "EISA", .name = "EISA",
.startup = eisa_startup_irq, .unmask = eisa_unmask_irq,
.shutdown = eisa_disable_irq, .mask = eisa_mask_irq,
.enable = eisa_enable_irq, .ack = no_ack_irq,
.disable = eisa_disable_irq,
.ack = no_ack_irq,
.end = no_end_irq,
}; };
static irqreturn_t eisa_irq(int wax_irq, void *intr_dev) static irqreturn_t eisa_irq(int wax_irq, void *intr_dev)
...@@ -349,7 +340,7 @@ static int __init eisa_probe(struct parisc_device *dev) ...@@ -349,7 +340,7 @@ static int __init eisa_probe(struct parisc_device *dev)
setup_irq(2, &irq2_action); setup_irq(2, &irq2_action);
for (i = 0; i < 16; i++) { for (i = 0; i < 16; i++) {
set_irq_chip_and_handler(i, &eisa_interrupt_type, set_irq_chip_and_handler(i, &eisa_interrupt_type,
parisc_do_IRQ); handle_level_irq);
} }
EISA_bus = 1; EISA_bus = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment