Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36c47239 authored by Steven Miao's avatar Steven Miao Committed by Bob Liu
Browse files

blackfin: pm: fix build error



Only register pm ops when defined CONFIG_PM.

Signed-off-by: default avatarSteven Miao <realmz6@gmail.com>
Signed-off-by: default avatarBob Liu <lliubbo@gmail.com>
parent 293be8de
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -1195,6 +1195,7 @@ static struct syscore_ops sec_pm_syscore_ops = {
	.suspend = sec_suspend,
	.suspend = sec_suspend,
	.resume = sec_resume,
	.resume = sec_resume,
};
};

#endif
#endif
#else
#else
# define bfin_gpio_set_wake NULL
# 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);
	bfin_write_SEC_SCI(1, SEC_CCTL, SEC_CCTL_EN | SEC_CCTL_NMI_EN);


	init_software_driven_irq();
	init_software_driven_irq();

#ifdef CONFIG_PM
	register_syscore_ops(&sec_pm_syscore_ops);
	register_syscore_ops(&sec_pm_syscore_ops);
#endif


	return 0;
	return 0;
}
}