blackfin: mach-common: ints-priority add irq_set_wake
authorBob Liu <lliubbo@gmail.com>
Fri, 1 Jun 2012 06:04:02 +0000 (14:04 +0800)
committerBob Liu <lliubbo@gmail.com>
Tue, 24 Jul 2012 05:39:49 +0000 (13:39 +0800)
Add irq_set_wake to bfin_sec_irqchip, drivers like stmmac need it.

Signed-off-by: Bob Liu <lliubbo@gmail.com>
arch/blackfin/mach-common/ints-priority.c

index 7e8fab3d3137b48b40e8281e27ba9d757a38ec86..9c7d65aee27561adf2351d1b128242192352cfa7 100644 (file)
@@ -496,7 +496,10 @@ static int bfin_internal_set_wake_chip(struct irq_data *d, unsigned int state)
        return bfin_internal_set_wake(d->irq, state);
 }
 #else
-# define bfin_internal_set_wake(irq, state)
+inline int bfin_internal_set_wake(unsigned int irq, unsigned int state)
+{
+       return 0;
+}
 # define bfin_internal_set_wake_chip NULL
 #endif
 
@@ -527,6 +530,7 @@ static struct irq_chip bfin_sec_irqchip = {
        .irq_eoi = bfin_sec_unmask_irq,
        .irq_disable = bfin_sec_disable,
        .irq_enable = bfin_sec_enable,
+       .irq_set_wake = bfin_internal_set_wake,
 };
 #endif