summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Liu <lliubbo@gmail.com>2012-06-01 14:04:02 +0800
committerBob Liu <lliubbo@gmail.com>2012-07-24 13:39:49 +0800
commit357351bb4f56300a31e1a746af7479d58f4c68fb (patch)
tree35f6e0ae97907b728d3b8f7531219e6997e58dbf
parent338881a5045fe211577e1e9c9088b608b81ca698 (diff)
blackfin: mach-common: ints-priority add irq_set_wake
Add irq_set_wake to bfin_sec_irqchip, drivers like stmmac need it. Signed-off-by: Bob Liu <lliubbo@gmail.com>
-rw-r--r--arch/blackfin/mach-common/ints-priority.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/blackfin/mach-common/ints-priority.c b/arch/blackfin/mach-common/ints-priority.c
index 7e8fab3d3137..9c7d65aee275 100644
--- a/arch/blackfin/mach-common/ints-priority.c
+++ b/arch/blackfin/mach-common/ints-priority.c
@@ -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