Skip to content

Commit

Permalink
blackfin: pm: fix build error
Browse files Browse the repository at this point in the history
Only register pm ops when defined CONFIG_PM.

Signed-off-by: Steven Miao <realmz6@gmail.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
  • Loading branch information
realmz authored and aet00 committed Feb 20, 2013
1 parent 293be8d commit 36c4723
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/blackfin/mach-common/ints-priority.c
Original file line number Diff line number Diff line change
Expand Up @@ -1195,6 +1195,7 @@ static struct syscore_ops sec_pm_syscore_ops = {
.suspend = sec_suspend,
.resume = sec_resume,
};

#endif
#else
# define bfin_gpio_set_wake NULL
Expand Down Expand Up @@ -1596,7 +1597,10 @@ int __init init_arch_irq(void)
bfin_write_SEC_SCI(1, SEC_CCTL, SEC_CCTL_EN | SEC_CCTL_NMI_EN);

init_software_driven_irq();

#ifdef CONFIG_PM
register_syscore_ops(&sec_pm_syscore_ops);
#endif

return 0;
}
Expand Down

0 comments on commit 36c4723

Please sign in to comment.