diff options
author | Bob Liu <lliubbo@gmail.com> | 2012-07-23 08:59:36 +0200 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2012-07-24 07:39:53 +0200 |
commit | 719154c6d1c1a3a404f4ff570c4b36bb2ef868ca (patch) | |
tree | b6489ebea97c3ba0aaa43a79ca7d0fc2e9b1f0a0 /arch/blackfin/mach-bf609/pm.c | |
parent | PM: add BF60x flash suspend and resume support (diff) | |
download | linux-719154c6d1c1a3a404f4ff570c4b36bb2ef868ca.tar.xz linux-719154c6d1c1a3a404f4ff570c4b36bb2ef868ca.zip |
bf60x: fix build warning
Fix several build warning while using bf609-ezkit_defconfig.
Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch/blackfin/mach-bf609/pm.c')
-rw-r--r-- | arch/blackfin/mach-bf609/pm.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/blackfin/mach-bf609/pm.c b/arch/blackfin/mach-bf609/pm.c index 0211ebd142c4..dacafc163f76 100644 --- a/arch/blackfin/mach-bf609/pm.c +++ b/arch/blackfin/mach-bf609/pm.c @@ -174,11 +174,7 @@ void bfin_hibernate_syscontrol(void) bfin_write32(DPM0_RESTORE5, bfin_read32(DPM0_RESTORE5) | 4); } -#ifndef CONFIG_BF60x -# define SIC_SYSIRQ(irq) (irq - (IRQ_CORETMR + 1)) -#else -# define SIC_SYSIRQ(irq) ((irq) - IVG15) -#endif +#define IRQ_SID(irq) ((irq) - IVG15) asmlinkage void enter_deepsleep(void); __attribute__((l1_text)) @@ -314,6 +310,8 @@ static struct syscore_ops smc_pm_syscore_ops = { static irqreturn_t test_isr(int irq, void *dev_id) { printk(KERN_DEBUG "gpio irq %d\n", irq); + if (irq == 231) + bfin_sec_raise_irq(IRQ_SID(IRQ_SOFT1)); return IRQ_HANDLED; } @@ -323,7 +321,6 @@ static irqreturn_t dpm0_isr(int irq, void *dev_id) bfin_write32(CGU0_STAT, bfin_read32(CGU0_STAT)); return IRQ_HANDLED; } -#endif static int __init bf609_init_pm(void) { |