提交 126caf13 编写于 作者: K Kevin Hilman

OMAP: omap_device: fix !CONFIG_SUSPEND case in _noirq handlers

The suspend/resume _noirq handlers were #ifdef'd out in the
!CONFIG_SUSPEND case, but were still assigned to the dev_pm_ops
struct.  Fix by defining them to NULL in the !CONFIG_SUSPEND case.
Reported-by: NArnd Bergmann <arnd@arndb.de>
Acked-by: NArnd Bergmann <arnd@arndb.de>
Signed-off-by: NKevin Hilman <khilman@ti.com>
上级 c6a389f1
...@@ -615,6 +615,9 @@ static int _od_resume_noirq(struct device *dev) ...@@ -615,6 +615,9 @@ static int _od_resume_noirq(struct device *dev)
return pm_generic_resume_noirq(dev); return pm_generic_resume_noirq(dev);
} }
#else
#define _od_suspend_noirq NULL
#define _od_resume_noirq NULL
#endif #endif
static struct dev_pm_domain omap_device_pm_domain = { static struct dev_pm_domain omap_device_pm_domain = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册