Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp881600pxf; Wed, 7 Apr 2021 14:03:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLy97S9dvQwqFY23xJhRVaUBP8jsjPmCabykI/nsfy61F6UdZpoOU93BfPWaWvwRuhBM7/ X-Received: by 2002:a50:d5d9:: with SMTP id g25mr6922270edj.47.1617829400532; Wed, 07 Apr 2021 14:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617829400; cv=none; d=google.com; s=arc-20160816; b=B0tH7+JQrtK2jZiqT6y32Edc0aDmC/7pBllBo6TG0WBTaizGcteT5ghuGUSntEPOhU i6ofBVfgaG4kNrYgJCdo4rGpIvmIOY03kRH3RF6Ad6wTGpinjtww6dCF40i/CL6dDirZ XWuRGsrjyRt55XMjDxdKVQr2QEO2xvPUY9Tm6m2b6Znc+HWxKnEZbDnPz7MhBoV9uaIe uT1SmAvbSF82SFNCBWHRFoQODK7rzlnDn9zyqpXb77DeV/0xzfq0uBzuElY+RYw5G3Ty U8RLLIK0B/Ud0ECycsdEx39cluGN3iqsNiFIzB/WiEVajPIqSXE8XvnBMvq+dzIDVLHB XCRg== 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:from:references :cc:to:subject:dkim-signature; bh=fm44WbDRvg5ne0yHElY/ZyexmCrcHUZfm1JrxKKHYXg=; b=smKdMTd3s9LpvZaYyusGaCq584MgClJZeBjnDxl3QrPpIughPpf9ewXB1cz74q+Pw5 vzx1TaalauIogbzuUsyXLAF+U6mqA3bPjp6lfQzR8i+uRNM6acfhw67WzjrM1ijfrVj9 eHVjGX0vCnzXZ8Lue+oRUc7lP9yrW4kkpH5DNGkL+VpD0+obMEIg9TXIOnA19D/vxz0p 6UNq8GW8bzVL/b3Mizlp6EmeSJNextflRhRlak6SZPEYuQvp55CYVgIrpKsz8mOq+nG2 YTKEQjrfayZFMdA859IK6MMLX/ljo/P5O6norE4Szrn+8fzCy4GfFu6w2KSjj2xF0D47 HNYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xs4all.nl header.s=s2 header.b=aBi0K7Cf; 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 i6si20287227edu.313.2021.04.07.14.02.55; Wed, 07 Apr 2021 14:03:20 -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=@xs4all.nl header.s=s2 header.b=aBi0K7Cf; 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 S1352762AbhDGOFt (ORCPT + 99 others); Wed, 7 Apr 2021 10:05:49 -0400 Received: from lb3-smtp-cloud7.xs4all.net ([194.109.24.31]:34841 "EHLO lb3-smtp-cloud7.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234067AbhDGOFm (ORCPT ); Wed, 7 Apr 2021 10:05:42 -0400 Received: from cust-b5b5937f ([IPv6:fc0c:c16d:66b8:757f:c639:739b:9d66:799d]) by smtp-cloud7.xs4all.net with ESMTPA id U8oAlSJzRMxedU8oDlIhgv; Wed, 07 Apr 2021 16:05:30 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=s2; t=1617804330; bh=fm44WbDRvg5ne0yHElY/ZyexmCrcHUZfm1JrxKKHYXg=; h=Subject:To:From:Message-ID:Date:MIME-Version:Content-Type:From: Subject; b=aBi0K7CfEbQR3dOy/Dnkf6U3bpGGiR4dImI1ENRMrd+iOMAYetDNcOE91Z8j8c1yC 98QOz9QKMQJ7o0rAL7En+I9RvzA80St63ktEqw9ROlHcY5ZDdFUm4NgFitcZOG+tnu 5Z1t4Zt0gbDXm3gy687VY76pnednaqr7IO51V1TZHSeefFyzr/GQU6gCvCfttw/d+C wCes29Y50tdio3sxOpP7NsPNqIKN/+1kH6v9jJO0GwazL0J90gS5hQdaLIcNoBq9PD SXGIdhXsy2HKIAnGTaG/4IauQ0ILoRX++5JlV010XIz4QudfpmWj9vo0nXdpXYD3yv 0grmeMe/tWusA== Subject: Re: [PATCH] staging: axis-fifo: media/meson: remove redundant dev_err call To: Muhammad Usama Anjum , Greg Kroah-Hartman , Neil Armstrong , Mauro Carvalho Chehab , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , "open list:STAGING SUBSYSTEM" , open list , "open list:MESON VIDEO DECODER DRIVER FOR AMLOGIC SOCS" , "open list:MESON VIDEO DECODER DRIVER FOR AMLOGIC SOCS" , "moderated list:ARM/Amlogic Meson SoC support" Cc: linqiheng@huawei.com, kernel-janitors@vger.kernel.org, dan.carpenter@oracle.com References: <20210407101047.GA1491258@LEGION> From: Hans Verkuil Message-ID: <93218bc8-2cbb-bacc-f985-876a842261c4@xs4all.nl> Date: Wed, 7 Apr 2021 16:05:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <20210407101047.GA1491258@LEGION> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfJuuT3CZKUYbj5nNz8R/l8wm1VJrpjTtQH6J0CmLwm7ghIJ918q0+hbMonNISO7KHY8ltQTOpTNtDRJ8Usjw2cLayCjTim5Lj6hbxFqYwUVV/Qtx3fJy o0P69y7rvrQfzlLdxH8b3CC78srRQDzdHZJ/x7+amPLWayrB6sc/NMDGDF/cHG6rq/ogA/QwcDjLzibQZp+Ly/oyZywn54zrOCrapWyEC5vw5TRHmZP+c90l e6/WiNqO+9zXEPoCZluWJONhoR13VC9A5NrFKRPpOI2J0KxRzbPO4Gn7FH5boVqwzH6s50YHCu/ZKfyl4Ahkf70ldCPaUaP4WnWApKXZKfrCYdd0267PJ4MB KxbTjy/4zMZDTC6dZR06qj+JvYW9hvbSONGDCTvmjSAPmMpwJ/DIB5Yq60JfhrVeth0c3dq1te5hwtjReUKEgA9j8tl3pXMpRJ14neeQEs+WEKPmNIy7rVq5 MLFvYKzilglPPRkGrvsVc97xsoAZnFQ/oablebOTuOfMNKlP/yzYJCOruNtcprpg4nCj+gkXxPkK8cyRe9qTkTMevzx20QTWiPsIxFXgNgvzgUVHFZQyH6sO xfkWiBGP+m5OgIhW44sDGDqPdU32hrBv6XcmD+Zu7+WhTsSYh5Sgbd4gujKk3QKL+oiqqoqI4kevS4yXbdXk6+sjioXy5RvgJ6HrECyButS1+fSOwvT/tBs2 K4PVCUJwHESaKQ8za4+7i4rHtqUjK+Uoi9tfuavJjs+QR1XeqkcFTw== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Muhammad, On 07/04/2021 12:10, Muhammad Usama Anjum wrote: > devm_ioremap_resource() prints error message in itself. Remove the > dev_err call to avoid redundant error message. Please split this up into two separate patches! They are independent changes and these two drivers are maintained by different people as well. The patch itself looks OK, but it really has to be two separate patches. Regards, Hans > > Signed-off-by: Muhammad Usama Anjum > --- > drivers/staging/axis-fifo/axis-fifo.c | 1 - > drivers/staging/media/meson/vdec/vdec.c | 8 ++------ > 2 files changed, 2 insertions(+), 7 deletions(-) > > diff --git a/drivers/staging/axis-fifo/axis-fifo.c b/drivers/staging/axis-fifo/axis-fifo.c > index 2bb1c2e9cb57..ed9281089738 100644 > --- a/drivers/staging/axis-fifo/axis-fifo.c > +++ b/drivers/staging/axis-fifo/axis-fifo.c > @@ -853,7 +853,6 @@ static int axis_fifo_probe(struct platform_device *pdev) > fifo->base_addr = devm_ioremap_resource(fifo->dt_device, r_mem); > if (IS_ERR(fifo->base_addr)) { > rc = PTR_ERR(fifo->base_addr); > - dev_err(fifo->dt_device, "can't remap IO resource (%d)\n", rc); > goto err_initial; > } > > 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, >