提交 61b17d97 编写于 作者: R Roel Kluin 提交者: Kevin Hilman

OMAP: omap3_pm_get_suspend_state() error ignored in pwrdm_suspend_get()

val is an u64 pointer, we need an int to check the error.
Signed-off-by: NRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: NKevin Hilman <khilman@deeprootsystems.com>
上级 e3d93296
...@@ -488,9 +488,11 @@ int pm_dbg_regset_init(int reg_set) ...@@ -488,9 +488,11 @@ int pm_dbg_regset_init(int reg_set)
static int pwrdm_suspend_get(void *data, u64 *val) static int pwrdm_suspend_get(void *data, u64 *val)
{ {
*val = omap3_pm_get_suspend_state((struct powerdomain *)data); int ret;
ret = omap3_pm_get_suspend_state((struct powerdomain *)data);
*val = ret;
if (*val >= 0) if (ret >= 0)
return 0; return 0;
return *val; return *val;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册