Skip to content

Commit

Permalink
OMAP: omap3_pm_get_suspend_state() error ignored in pwrdm_suspend_get()
Browse files Browse the repository at this point in the history
val is an u64 pointer, we need an int to check the error.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
  • Loading branch information
Roel Kluin authored and Kevin Hilman committed Jan 21, 2010
1 parent e3d9329 commit 61b17d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/arm/mach-omap2/pm-debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,11 @@ int pm_dbg_regset_init(int reg_set)

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 *val;
}
Expand Down

0 comments on commit 61b17d9

Please sign in to comment.