mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
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>
This commit is contained in:
parent
c1ae3cfa0e
commit
f147140c7f
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue