From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753938AbdDJPY1 (ORCPT ); Mon, 10 Apr 2017 11:24:27 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:5430 "EHLO dggrg03-dlp.huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751396AbdDJPYY (ORCPT ); Mon, 10 Apr 2017 11:24:24 -0400 Subject: Re: [PATCH -next v2] ARM: hisi: fix error return code in hip04_smp_init() To: Wei Yongjun , Russell King References: <20170122164128.29381-1-weiyj.lk@gmail.com> <20170205163255.28589-1-weiyj.lk@gmail.com> CC: Wei Yongjun , , From: Wei Xu Message-ID: <58EBA379.90401@hisilicon.com> Date: Mon, 10 Apr 2017 16:23:37 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20170205163255.28589-1-weiyj.lk@gmail.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.46.18.238] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090204.58EBA393.027B,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 0397cc27ed99f18015915922d9155f2e Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Yongjun, On 2017/2/5 16:32, Wei Yongjun wrote: > From: Wei Yongjun > > 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 Thanks! Applied to the hisilicon soc tree. Best Regards, Wei > --- > v1 -> v2: fix file module > --- > arch/arm/mach-hisi/platmcpm.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm/mach-hisi/platmcpm.c b/arch/arm/mach-hisi/platmcpm.c > index a6c1176..f0fff21 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; > > >