projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
293be8d
)
blackfin: pm: fix build error
author
Steven Miao
<realmz6@gmail.com>
Fri, 21 Dec 2012 06:34:16 +0000
(14:34 +0800)
committer
Bob Liu
<lliubbo@gmail.com>
Wed, 20 Feb 2013 07:21:23 +0000
(15:21 +0800)
Only register pm ops when defined CONFIG_PM.
Signed-off-by: Steven Miao <realmz6@gmail.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
arch/blackfin/mach-common/ints-priority.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/blackfin/mach-common/ints-priority.c
b/arch/blackfin/mach-common/ints-priority.c
index 83ff311fd6ea413930673fd91adf4a61eefb8fea..6c0c6816a51a1f2c22ef7805d1c26999d1471874 100644
(file)
--- a/
arch/blackfin/mach-common/ints-priority.c
+++ b/
arch/blackfin/mach-common/ints-priority.c
@@
-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
@@
-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;
}