Received: by 10.213.65.68 with SMTP id h4csp859211imn; Fri, 23 Mar 2018 19:09:19 -0700 (PDT) X-Google-Smtp-Source: AG47ELtygPbgzIUjfzRCj1xqQpa4OXxPABmp3hEb7fRIKtt9SWaR+DN0v20tYcoeVminkf51ovVh X-Received: by 10.99.183.67 with SMTP id w3mr22545431pgt.153.1521857359203; Fri, 23 Mar 2018 19:09:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521857359; cv=none; d=google.com; s=arc-20160816; b=eYIySSeu5LzTGU6gdQgk5m4O8ZUU6PKELV9lza7Ti76WpvflU/YcZ3idp9JjfDvFDB AhsorSgcdakVeJwuuRqOQrvhGe9iAvCMwwiam37VNonHySTTxP35aDBPmQZsPGXWg5YK atCDgoMbz/kTzYWtUIbCdBfOAtEdIc9VI2LjrB3ax4T3n6ahYbs9AY1B9k3ntzX4fTwT JaKb8c9mRfZ9g3vuuobDER0O8Nwg3owj6V2bXG3YWaDPc04Dz6cPGbJNUpJ/MakOBU9B uWwzBy9NM8VQ5tDREFLYhzO/VScvqZ8+NrdCr5vlijKJkvUyA1alQtE3xyRIkQa+4dwf h69Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=AlBXVYUHG1mJJHRPSaG+P/wdvOJjpVjQiOISUewvlqs=; b=Rdy22KVx+j9GcWg01Y+is9qImSfK7vQmCnssDR5MXZG1qf4hj4FJL+hMT9pPluiKVN KO8r6LD61RCnwDSyZMA3KdjXi8hYP3fbx+9x94F+nT2QSvaD5h2JZicx0sZTZUmouEoD WxqiMv3zQz1CsMBDX1Gj2SLG2JmaADbO9gl+irLhsIM39ymYq1HGAuYp2aINy/f7mzNd zzBz1sviT1gAi9SRAWg8gEW/U9BPER7cIwbwIdeifVa/l3cL7DX1QZ83d2P5JAT4HhWK HGhMYqFKpztGlpUhSJ8Ygb2xvesTqw3wB3RU9X2Yzboj/yNfQQqGQt00qewkAAa057lh 7ASA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i63si7659461pfj.365.2018.03.23.19.08.53; Fri, 23 Mar 2018 19:09:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751823AbeCXCHc (ORCPT + 99 others); Fri, 23 Mar 2018 22:07:32 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:8199 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750789AbeCXCHb (ORCPT ); Fri, 23 Mar 2018 22:07:31 -0400 X-UUID: a84e195fa153413c8567962238451e61-20180324 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1017713032; Sat, 24 Mar 2018 10:07:27 +0800 Received: from MTKCAS67.mediatek.inc (172.29.193.45) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Sat, 24 Mar 2018 10:07:25 +0800 Received: from mussux00 (172.29.97.100) by MTKCAS67.mediatek.inc (172.29.193.43) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Fri, 23 Mar 2018 19:07:24 -0700 Message-ID: <1521857244.3372.12.camel@mediatek.com> Subject: Re: [PATCH] [media] vcodec: fix error return value from mtk_jpeg_clk_init() From: Rick Chang To: Ryder Lee , Mauro Carvalho Chehab , Hans Verkuil CC: , , , , Bin Liu Date: Fri, 23 Mar 2018 19:07:24 -0700 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-Product-Ver: SMEX-12.5.0.5042-8.2.9001-23738.001 X-TM-AS-Result: No-8.166400-8.000000-10 X-TMASE-MatchedRID: sDm3xtR6Ud8OwH4pD14DsPHkpkyUphL9daQbKlF7PQssdQp93rbCi/lY oV6p/cSxy5X05u8Zm4JftuJwrFEhTbew1twePJJB3QfwsVk0UbswamAE0joFo7TvHXWePvyajD9 LuLoOTm42gPVVdDt2Ss8HgwTn23dsFe6L1vVmEAwPLdwHllYR2BWDYotrbwcP9aOe3MgTOEoTEX X3AmXBTi7lbDA/iwA+p4LUt4GwWE22mFvBAr2as9ht7Jcqu2pD9WKjOrQycp1+3BndfXUhXQ== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--8.166400-8.000000 X-TMASE-Version: SMEX-12.5.0.5042-8.2.9001-23738.001 X-TMASE-POSTMAN: 2-d; X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2018-03-23 at 11:44 +0800, Ryder Lee wrote: > The error return value should be fixed as it may return EPROBE_DEFER. > > Cc: Rick Chang > Cc: Bin Liu > Signed-off-by: Ryder Lee > --- >  drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c | 4 ++-- >  1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c > b/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c > index 226f908..af17aaa 100644 > --- a/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c > +++ b/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c > @@ -1081,11 +1081,11 @@ static int mtk_jpeg_clk_init(struct > mtk_jpeg_dev *jpeg) >   >   jpeg->clk_jdec = devm_clk_get(jpeg->dev, "jpgdec"); >   if (IS_ERR(jpeg->clk_jdec)) > - return -EINVAL; > + return PTR_ERR(jpeg->clk_jdec); >   >   jpeg->clk_jdec_smi = devm_clk_get(jpeg->dev, "jpgdec-smi"); >   if (IS_ERR(jpeg->clk_jdec_smi)) > - return -EINVAL; > + return PTR_ERR(jpeg->clk_jdec_smi); >   >   return 0; >  } Acked-by: Rick Chang