Received: by 10.213.65.68 with SMTP id h4csp10021imn; Thu, 22 Mar 2018 20:46:02 -0700 (PDT) X-Google-Smtp-Source: AG47ELsT3/IbYmj8+Qui45LCFnRmRtsccJHp5Spl23yr8bFfT/RkYQjl6dSU04akyU0CPGBG3Dov X-Received: by 10.167.129.24 with SMTP id b24mr22499430pfi.183.1521776762032; Thu, 22 Mar 2018 20:46:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521776762; cv=none; d=google.com; s=arc-20160816; b=sRbXgEP25BL9nrws4XSaLEpbcX38PqD/cwfjY8Fa5iDGS4HoX4IMbuDtVt3KJtXgD4 kPpIiSFl8A/RhAuxtAxVliuuEg0tgZg2Wr/AbUdAMheyKYNIxepZLXUCx9cRDlqZngJL /zESgMoVDvjrS98sq3YuM1fBZMKcx9I4UDC+GxLoT1lARorBIIVlsrOS/PKVKRZIM/lt 3E6mWNXlv8SYUt65GJo7BXzbQeftrFy0qn7WIrn/Pash8oOQuokzOuVWRvMieDEeXUK6 qAzORPFWxi49B0HYJgVcWTv3hR68dzMczyTFWaBSdW9hcwwjVa0UoXg9uNIglJ7sz8z+ f6AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=WJ9ZHRQTg+rGEv2tUFaQ/Ss1dc5JfqZTYUijCu5QTB0=; b=Tg/0tn7r/ahLls+UHqoxha3OLM5R5zm40ay+G15NgkCYGyWPjI8L63IvLqH9MGIixi N/JjxSTkuUA+1Cj5pMRQz02gKjfxyXKfLpf0QOjY8K+2NS2wLrGNMOUiO4PLki26c+9P 2+OPXrM9E4bJ4lb6F4ncS8ZWQR0k05SCFpzapO1rX1u8GIZ7X4p9ppDHSH8yD29xCOGX h4XyZ4mcQA2mYQxfi8ImsyMLz/d+lt7M5K0+i9W2XCzn50zf1xX1mB5St4GwwN+ELiG+ 5CzGb6JvYkmIzUpO+YHJcGBuoqdhgPB74uOKg/GcOJDVvWa3vumQc2zPwCjfHjfSlnbb DmjA== 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 b6-v6si811810plx.263.2018.03.22.20.45.46; Thu, 22 Mar 2018 20:46:02 -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 S1752105AbeCWDoY (ORCPT + 99 others); Thu, 22 Mar 2018 23:44:24 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:40951 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751890AbeCWDoW (ORCPT ); Thu, 22 Mar 2018 23:44:22 -0400 X-UUID: 0b54a1ac820d4c9d8b1c652e693b4735-20180323 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1988292266; Fri, 23 Mar 2018 11:44:18 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Fri, 23 Mar 2018 11:44:15 +0800 Received: from mtkslt306.mediatek.inc (10.21.14.136) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Fri, 23 Mar 2018 11:44:15 +0800 From: Ryder Lee To: Mauro Carvalho Chehab , Hans Verkuil CC: , , , , "Ryder Lee" , Rick Chang , Bin Liu Subject: [PATCH] [media] vcodec: fix error return value from mtk_jpeg_clk_init() Date: Fri, 23 Mar 2018 11:44:13 +0800 Message-ID: X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-Product-Ver: SMEX-12.5.0.5042-8.2.9001-23736.003 X-TM-AS-Result: No-2.867500-8.000000-10 X-TMASE-MatchedRID: iyOaUzKo3m/MxeM2fhfB7kyQ5fRSh265H8fXhwPLN7GjxYyRBa/qJQJj 6WxgWJYb5MIx11wv+CPGVuWouVipcjQJ8LiNAx5aJT7qgeqiOg9523AyrCX8wnfLsXBEMK4+Z/I B5jAhZAVBBpB9i3UBwlkf0TYN3mgxzMo/u4o0CcFuB+4uIp4zDvDsnHBTQS9kyoRE4tv/7I7j/Q m+fSvAAma0vgPD7M1v1PYfTfPNTUk= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--2.867500-8.000000 X-TMASE-Version: SMEX-12.5.0.5042-8.2.9001-23736.003 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 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; } -- 1.9.1