Subject: Re: Request_irq fails for IRQ2

From: Scott Wood <[email-masked]>
Date: Tue, 4 Oct 2011 10:30:36 -0500

On 10/04/2011 06:21 AM, [email-masked] wrote:
> Hi Scott,
> 
> I am able to register the IRQ now once I add the call irq_set_default_host in cpm2_pic.
> But when I call enable_irq the code throws the below warning and gives exception in enable irq at 
> spin_unlock_irqrestore(&desc->lock, flags); in enable_irq.
> 
> 
> printk(KERN_WARNING "Unbalanced enable for IRQ %d\n", irq);

The IRQ is automatically enabled when you request it.  Only call
enable_irq() if you previously called disable_irq().

-Scott