Commit 61b17d97 authored by Roel Kluin's avatar Roel Kluin Committed by 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: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment