summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2016-02-16 10:54:53 -0800
committerStefan Agner <stefan.agner@toradex.com>2016-02-16 16:01:01 -0800
commit9c5b2a0860c163f65e7308b0b76dbdc603b322d4 (patch)
tree31af2e909fb4c799dc83fcb3bde8529e7fb23443 /arch/arm/mach-imx
parentaee03fdc85d7a9b2e309da122f958aae0cb84c61 (diff)
ARM: vf610: PM: do not return error if L2 cache is missing
The current probe code ignores a missing L2 cache, but still returns ENODEV. Avoid returning ENODEV if a L2 cache is missing by setting ret to 0. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'arch/arm/mach-imx')
-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;