summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-imx/pm-vf610.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/pm-vf610.c b/arch/arm/mach-imx/pm-vf610.c
index 36a4871a2158..27302b4e424a 100644
--- a/arch/arm/mach-imx/pm-vf610.c
+++ b/arch/arm/mach-imx/pm-vf610.c
@@ -578,7 +578,9 @@ static int __init vf610_suspend_init(const struct vf610_pm_socdata *socdata)
}
ret = imx_pm_get_base(&pm_info->l2_base, "arm,pl310-cache");
- if (ret && ret != -ENODEV) {
+ if (ret == -ENODEV)
+ ret = 0;
+ if (ret) {
pr_warn("%s: failed to get pl310-cache base %d!\n",
__func__, ret);
goto pl310_cache_map_failed;