Commit 5bbda4e4 authored by Paul Mundt's avatar Paul Mundt

sh: intc: Prefer IRQCHIP_SKIP_SET_WAKE over a dummy set_wake callback.

It's possible to use IRQCHIP_SKIP_SET_WAKE to get the behaviour that
we're after, without having to bother with a dummy ->set_wake() callback
for the IRQ chip.
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 5fbebcbd
...@@ -58,11 +58,6 @@ static void intc_disable(struct irq_data *data) ...@@ -58,11 +58,6 @@ static void intc_disable(struct irq_data *data)
} }
} }
static int intc_set_wake(struct irq_data *data, unsigned int on)
{
return 0; /* allow wakeup, but setup hardware in intc_suspend() */
}
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
/* /*
* This is held with the irq desc lock held, so we don't require any * This is held with the irq desc lock held, so we don't require any
...@@ -225,8 +220,8 @@ struct irq_chip intc_irq_chip = { ...@@ -225,8 +220,8 @@ struct irq_chip intc_irq_chip = {
.irq_disable = intc_disable, .irq_disable = intc_disable,
.irq_shutdown = intc_disable, .irq_shutdown = intc_disable,
.irq_set_type = intc_set_type, .irq_set_type = intc_set_type,
.irq_set_wake = intc_set_wake,
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
.irq_set_affinity = intc_set_affinity, .irq_set_affinity = intc_set_affinity,
#endif #endif
.flags = IRQCHIP_SKIP_SET_WAKE,
}; };
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