Only call free_irq if we marked the request_irq has having succeeded
instead of whenever the the sub-driver identified the interrupt to use.
Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
void notifier_del_irq(struct hvc_struct *hp, int irq)
{
void notifier_del_irq(struct hvc_struct *hp, int irq)
{
+ if (!hp->irq_requested)
return;
free_irq(irq, hp);
hp->irq_requested = 0;
return;
free_irq(irq, hp);
hp->irq_requested = 0;