projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3d9329
)
OMAP: omap3_pm_get_suspend_state() error ignored in pwrdm_suspend_get()
author
Roel Kluin
<roel.kluin@gmail.com>
Wed, 16 Dec 2009 16:22:04 +0000
(17:22 +0100)
committer
Kevin Hilman
<khilman@deeprootsystems.com>
Thu, 21 Jan 2010 02:16:07 +0000
(18:16 -0800)
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>
arch/arm/mach-omap2/pm-debug.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-omap2/pm-debug.c
b/arch/arm/mach-omap2/pm-debug.c
index
e9d3993
..
562d190
100644
(file)
--- a/
arch/arm/mach-omap2/pm-debug.c
+++ b/
arch/arm/mach-omap2/pm-debug.c
@@
-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;
}