Received: by 10.213.65.68 with SMTP id h4csp560438imn; Fri, 23 Mar 2018 10:21:21 -0700 (PDT) X-Google-Smtp-Source: AG47ELvDS7DlmkVqkqnnjL83qUkmOw+Yo1zJsUlT8H6v/L396zo0IcuBNn25ISO6hvEjYpChwax5 X-Received: by 10.99.156.17 with SMTP id f17mr21580951pge.102.1521825681387; Fri, 23 Mar 2018 10:21:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521825681; cv=none; d=google.com; s=arc-20160816; b=d/W6HeRAoRdCUtuUvqnlk5UMWvF4t3uKTdEfgPC59kDtS0CvMugWvbS15ZeVV6lKbI CGQ0UhOsnP+tugNc0HhR+BgzLQ6f+kj7NovaU4dPuAkxCBpuWUPgOauKMm+nvnVhqjBo Dw4CUdsl9HRt3vxqvn+oahiKG8svsVzPASJ0usbfbgUO7YxTAb6sTOjzDrr9aflB80Ft hAnuC7phyJ+WgJd7qSOOkiKsK190pl1xIfAjxK9NTIsrHq8Iix8xT4gy4iaHdI3O+/e4 5fF8rDs2/5Nki5u/XGeYkF0CJPCJIz75Ss0OXIe5FsSXOWxMfDHL1WV/9yUTiTEK5XJb rl/Q== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=YJXpjfBIxe0CmOnCYbZ2Ye8Uvq5ZFDHm8xKCpV68QnQ=; b=xRlguxCy5xdbQYNvU+x1kmRBYX5N//O2mCCy2s8O/rtbJFLb5+nbRxQcyM7nkbozwD xfNFYZuxBVZdVCXzdMADg1wvCFiO/4nsf4j7r5fyoe92gnPhn6I5A6jIy9+/UTrJRe8/ xN0udmMwUq6/FuFRQRVFdwLaNHHlPvKnoqhmlgMSFztp5Y7Esqn/RCcK0Qm29xHyd9R2 C9SPBljQh6ZSFBxPdCmKdPpzSmQpSoFQ2p78lyhWFq0/9dEmGQgWBbg9aXriZKMjz5A1 aTGW/QYgsbn51/McbP6Lm0/nLsqf3UzObAApIIILjFYTRUQ8YKmiErXUj/gji5nl5jIu dg7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SwiKb0w3; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q14si6289779pgr.311.2018.03.23.10.21.06; Fri, 23 Mar 2018 10:21:21 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SwiKb0w3; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752253AbeCWRT3 (ORCPT + 99 others); Fri, 23 Mar 2018 13:19:29 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:33152 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751691AbeCWRTH (ORCPT ); Fri, 23 Mar 2018 13:19:07 -0400 Received: by mail-wm0-f68.google.com with SMTP id i189so7797639wmf.0; Fri, 23 Mar 2018 10:19:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=YJXpjfBIxe0CmOnCYbZ2Ye8Uvq5ZFDHm8xKCpV68QnQ=; b=SwiKb0w3mPPOLqgDAmsJkwu6nePXg5oGsFpgE2cShBnShDgqeWJIjmLWj4noiKGsQN iHFXZluyjOw8Hww1tek1X0QnCZ7SXsOjRp9D7uOkRYrcL9/8fTGTBFuk7BHobfA3nKgP 0uFWRuUq29Y/wWQWSxz8pYUMcgffMIa1rJQkI3jTWZPPJMs8Q19ZxZR+87jjKWYgvfxz uFvTBs6Mlyp1cIorpMsJvLD7UMELWy2Vw9da51nPc5wPmi5RlaiJdmdXUdBRTGHsaOtx FT6usQmmzHezCXOzI+ttFZWxjeoN6ggy6OcCLFa/piYdvqyISmhmmWt90Yknpfn420w8 ae5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=YJXpjfBIxe0CmOnCYbZ2Ye8Uvq5ZFDHm8xKCpV68QnQ=; b=KnLOx296zox1+IVjKkDVqwVMGwQ2WXiy9tF/sfewdBlZIEJZCJITihZKkL3iNBDXx4 lrrGcYFEZ0nCjinNIOCqiOB5P6SoEFukorMP15JBy+I6M0r7lPL+zbPNKkagowlGC7I+ 1QdnTHObYs34QE3FhpZBLMePTEjXDJP44cp9F7hXa6Q8pF87A4J+A9W0ZKDKGESdZ2Uh RrLsYEGalP2k0Bk7joq5ypmWKVpcM6fjsD9M5HMu+9lOIuoW5yaUY6g7LjcSi0zW3cAd 0jAFeW/vq9LLz4VGBiVg5M8lWyJWQKHG9swkvBR0MM2Ew3bZBKpcPVuwIsxgfR3Ouw41 Fj5Q== X-Gm-Message-State: AElRT7HvdGUhY8F1SvjY4Du0KuGb+pHS25Y3L2EwzTrFJD1J66iP3GfT 0W8LSynmj3gqYeKTrWqzdt4QqcmC X-Received: by 10.28.112.23 with SMTP id l23mr9971511wmc.46.1521825546323; Fri, 23 Mar 2018 10:19:06 -0700 (PDT) Received: from ziggy.stardust ([37.223.146.214]) by smtp.gmail.com with ESMTPSA id i127sm8995519wmf.33.2018.03.23.10.19.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Mar 2018 10:19:05 -0700 (PDT) Subject: Re: [PATCH] [media] vcodec: fix error return value from mtk_jpeg_clk_init() To: Ryder Lee , Mauro Carvalho Chehab , Hans Verkuil Cc: Bin Liu , Rick Chang , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org References: From: Matthias Brugger Message-ID: <6431ba94-5e7d-0df5-40bb-04f9af203586@gmail.com> Date: Fri, 23 Mar 2018 18:19:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/23/2018 04:44 AM, 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 Reviewed-by: Matthias Brugger > --- > 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; > } >