Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3846675pxy; Mon, 26 Apr 2021 11:07:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1ZUxu4S0hR1AIuAZc8Z9o/Z0Jw13ZSGc5LEbsEqRewjl27YRWbWVwu9fWPu4NFrBfyIex X-Received: by 2002:aa7:d15a:: with SMTP id r26mr22896743edo.283.1619460448563; Mon, 26 Apr 2021 11:07:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619460448; cv=none; d=google.com; s=arc-20160816; b=HkBJ6kpSzBC5TplzYunopRyYDqbiZz2X5/tgc7Zwp6jYeLtY7NxUFIkN5j9WZKu0yO uv5bk3ZbrF4cSnQ4fELbfVOc8pOuxf6SPa2VC0jrKOQcRVRmZjPze1DCKrZDVrMXn30J mBlFfNylTCSs2zKuqpDuZeNlTSYibxSrSc4fxsKzS4ZophalUpa6urjd1ZrjZVDUsWJy R+tjN+0g4OSIqJGgdY14v8Q777yUc3UM9lqs6vsWk3rvaL7zuu36sat8Zxt1SweuQYow 9kQdKTA/DfEHDa78A8cptK1Jf9TcvoCS4xDXT04uGSEONXnTfba9H30gRQW1FZMaK0Y8 gWCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature; bh=z9wgVVjDAXXSJE2ca33a8jal0v2yahV0C8O37SZcpvQ=; b=RnxLFpm5uwPtnqaBRNUvmqlU1UPujmtRHK/DEtkYIvZueNoCZJVTMqOkyiayMxkzfK qJR9qGVwFWR0wfzFRENPs/9TAJP1RBDPZ4WDHr/HKXqgfvzd8T5oqoXW2IEa8NGK/A5V JF07gdHeHRoDFSU1Qxrj622vmOdfMn/NOoFVVp9pX52LOBlER/0YYfw1bfXPlPl2L9NF aLIBT8CcVUNqU25LIu1sl1LBRsH29nLYYyew4ddmIXDcBkN+Wc/z11TM8emlyPdKCFvO s2YpP29TwBfXAxZiC551gibXRQ3BtRk/ZKxMFF/PnbUU11a/dXAxal1C+cmON66tdsx/ nChQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=pFmvfHUw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i27si418298edy.365.2021.04.26.11.07.04; Mon, 26 Apr 2021 11:07:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=pFmvfHUw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235827AbhDZSFu (ORCPT + 99 others); Mon, 26 Apr 2021 14:05:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234527AbhDZSEY (ORCPT ); Mon, 26 Apr 2021 14:04:24 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C17EAC06175F for ; Mon, 26 Apr 2021 11:03:41 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 82-20020a1c01550000b0290142562ff7c9so1406459wmb.3 for ; Mon, 26 Apr 2021 11:03:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=z9wgVVjDAXXSJE2ca33a8jal0v2yahV0C8O37SZcpvQ=; b=pFmvfHUw2Xc6IYETlM2LNNtATPOTQ7qOqODeMSW5rpBgjncMHgqe6irSOKEOei9ueF 8Fg0qy8zm0/2CZeZRz3bPZuNX4PtQZmWvgm2YXiJHd04qhm0nB7gZmZKmjqkhYGK1A+8 qaA40+XWCDSzNyo3lWRkGVmM5NW8sM/46hVfe3VDrmQkztlWr/gLFmWYkcz6fxRSqlK1 nk6Xmahbo1ODPRDT3+DUgHsPaPiKMfDQDjVKHjfKghPWBijfyLPPpNN0oFZHKBzVj3Ch gAgQlhllqE4dhpHOX/WKq8jycyAfJT1bpXlbw+26SpZuCIhG8KHV0Kpb+nV74Cqbys+7 /Yuw== 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:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=z9wgVVjDAXXSJE2ca33a8jal0v2yahV0C8O37SZcpvQ=; b=DSJT47wqVc3vQQE2aIw+ROH1rNQ4+eZBvFGB+sQrM8Pcp6eoz99IV68VPGN+Urf3bw nEtfg7zk61ksXRvabkSSXEuj3GMYMcQwHRxWyoeMK2CIb1b94xJPOTCvZDcAmHJQPmPf 7i739eXQa/cVfwhqKbuTOsDNgr9QDfHCZ9YytTPryK1svNAcWlYGQqlr/JL5LDKvg2gt dNkTtryuKfp/todF+OVNZQbCGAjfGvj8I4Q4UiiuC4Vle3sokHC93YqSQ9YdujoBJX9r 2VKAA8wcc7NompKTP9MRmTdGHfOFa8z5G8DAJWU1rCA8taCRaqAv/dnZ7s0yRlDwfgHA SU8Q== X-Gm-Message-State: AOAM5301gsZz56FNydvhoDJxwWUFXI7nZb1PqY2LR9F3shBxnRFcqNE6 PODX9e0YshulPO/Lp0moZMu1PA== X-Received: by 2002:a05:600c:2148:: with SMTP id v8mr236741wml.167.1619460220445; Mon, 26 Apr 2021 11:03:40 -0700 (PDT) Received: from ?IPv6:2a01:e0a:90c:e290:b76e:7362:77c0:ddc3? ([2a01:e0a:90c:e290:b76e:7362:77c0:ddc3]) by smtp.gmail.com with ESMTPSA id l9sm1096913wrz.7.2021.04.26.11.03.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Apr 2021 11:03:38 -0700 (PDT) Subject: Re: [PATCH] staging: media/meson: remove redundant dev_err call To: Muhammad Usama Anjum , hverkuil@xs4all.nl, Mauro Carvalho Chehab , Greg Kroah-Hartman , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , "open list:MESON VIDEO DECODER DRIVER FOR AMLOGIC SOCS" , "open list:MESON VIDEO DECODER DRIVER FOR AMLOGIC SOCS" , "open list:STAGING SUBSYSTEM" , "moderated list:ARM/Amlogic Meson SoC support" , open list Cc: kernel-janitors@vger.kernel.org, dan.carpenter@oracle.com References: <20210407160921.GA1504294@LEGION> From: Neil Armstrong Organization: Baylibre Message-ID: <3fac78c4-189f-57cb-ca81-a97c918e2386@baylibre.com> Date: Mon, 26 Apr 2021 20:03:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <20210407160921.GA1504294@LEGION> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/04/2021 18:09, Muhammad Usama Anjum wrote: > devm_ioremap_resource() prints error message in itself. Remove the > dev_err call to avoid redundant error message. > > Signed-off-by: Muhammad Usama Anjum > --- > drivers/staging/media/meson/vdec/vdec.c | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) > > diff --git a/drivers/staging/media/meson/vdec/vdec.c b/drivers/staging/media/meson/vdec/vdec.c > index 5d4db7a5b4b5..e51d69c4729d 100644 > --- a/drivers/staging/media/meson/vdec/vdec.c > +++ b/drivers/staging/media/meson/vdec/vdec.c > @@ -1008,17 +1008,13 @@ static int vdec_probe(struct platform_device *pdev) > > r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dos"); > core->dos_base = devm_ioremap_resource(dev, r); > - if (IS_ERR(core->dos_base)) { > - dev_err(dev, "Couldn't remap DOS memory\n"); > + if (IS_ERR(core->dos_base)) > return PTR_ERR(core->dos_base); > - } > > r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "esparser"); > core->esparser_base = devm_ioremap_resource(dev, r); > - if (IS_ERR(core->esparser_base)) { > - dev_err(dev, "Couldn't remap ESPARSER memory\n"); > + if (IS_ERR(core->esparser_base)) > return PTR_ERR(core->esparser_base); > - } > > core->regmap_ao = > syscon_regmap_lookup_by_phandle(dev->of_node, > Acked-by: Neil Armstrong