summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-hisi
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2017-02-05 17:32:55 +0100
committerWei Xu <xuwei5@hisilicon.com>2017-03-28 16:30:54 +0200
commitf147140c7f0350d363c10aeb51b78b65b2425266 (patch)
treeee4f97689bfd5f0c9b4ba3af36ae40c95cca3429 /arch/arm/mach-hisi
parentLinux 4.11-rc1 (diff)
downloadlinux-f147140c7f0350d363c10aeb51b78b65b2425266.tar.xz
linux-f147140c7f0350d363c10aeb51b78b65b2425266.zip
ARM: hisi: fix error return code in hip04_smp_init()
Fix to return error code -ENODEV from the of_find_compatible_node() error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
Diffstat (limited to 'arch/arm/mach-hisi')
-rw-r--r--arch/arm/mach-hisi/platmcpm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-hisi/platmcpm.c b/arch/arm/mach-hisi/platmcpm.c
index a6c117622d67..f66815c3dd07 100644
--- a/arch/arm/mach-hisi/platmcpm.c
+++ b/arch/arm/mach-hisi/platmcpm.c
@@ -279,6 +279,8 @@ static int __init hip04_smp_init(void)
&hip04_boot_method[0], 4);
if (ret)
goto err;
+
+ ret = -ENODEV;
np_sctl = of_find_compatible_node(NULL, NULL, "hisilicon,sysctrl");
if (!np_sctl)
goto err;