From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB4C9C3A5A5 for ; Thu, 5 Sep 2019 11:07:23 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ABA1F2184B for ; Thu, 5 Sep 2019 11:07:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="H2q2Sd/h" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ABA1F2184B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=mansr.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:In-Reply-To: Date:References:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=lRVR1eXxkQUAEXUOkkQnvFSxidZSqhcTP4B8spCM1I4=; b=H2q2Sd/hG1q0dg cPYrIp+w/L20sEab5fyoiTriMvkrNnMn1snUr9nE7/yz/9C59ujGJ7sC/FFIzAnvyZf9AG667N4+k H8CH2iXYEzKwhwtHjsGm0OMr3JLw8KYXmkrq8sIBmiNB7KDIlQYx/LE9GOGty2N8AIiqwpAzOHPhv b1Oif/qD2/8R9pwrAfrQAOYEZaQ5DXDW2xwV3Q9PnsrfFRvymEumQJILCqEunWj3EwN818+SylIeY hrT3+ZkhpxtM2PSzvIYgMSxD3htvdX4+x1B9Gjq/4mDAMHpY35vNWqXGPWNWl2INfQDo9giMpDZSd EWJO7wkLwJL+oD0qHmQw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i5pbg-0005tf-Tf; Thu, 05 Sep 2019 11:07:17 +0000 Received: from unicorn.mansr.com ([2001:8b0:ca0d:8d8e::2]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i5pbb-0005rJ-Ae; Thu, 05 Sep 2019 11:07:12 +0000 Received: by unicorn.mansr.com (Postfix, from userid 51770) id B3B4B17FE3; Thu, 5 Sep 2019 12:06:54 +0100 (BST) From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: YueHaibing Subject: Re: [PATCH -next 12/15] thermal: tango: use devm_platform_ioremap_resource() to simplify code References: <20190904122939.23780-1-yuehaibing@huawei.com> <20190904122939.23780-13-yuehaibing@huawei.com> Date: Thu, 05 Sep 2019 12:06:54 +0100 In-Reply-To: <20190904122939.23780-13-yuehaibing@huawei.com> (yuehaibing@huawei.com's message of "Wed, 4 Sep 2019 20:29:36 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190905_040711_573069_B150DCCF X-CRM114-Status: GOOD ( 12.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mmayer@broadcom.com, eric@anholt.net, miquel.raynal@bootlin.com, linux-stm32@st-md-mailman.stormreply.com, heiko@sntech.de, amit.kucheria@verdurent.com, f.fainelli@gmail.com, daniel.lezcano@linaro.org, phil@raspberrypi.org, linux-rockchip@lists.infradead.org, agross@kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-arm-msm@vger.kernel.org, rui.zhang@intel.com, david.hernandezsanchez@st.com, alexandre.torgue@st.com, marc.w.gonzalez@free.fr, rjui@broadcom.com, edubezval@gmail.com, linux-mediatek@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, gregory.0xf0@gmail.com, matthias.bgg@gmail.com, horms+renesas@verge.net.au, talel@amazon.com, linux-arm-kernel@lists.infradead.org, sbranden@broadcom.com, wsa+renesas@sang-engineering.com, gregkh@linuxfoundation.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, wahrenst@gmx.net, mcoquelin.stm32@gmail.com, jun.nie@linaro.org, computersforpeace@gmail.com, shawnguo@kernel.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org YueHaibing writes: > Use devm_platform_ioremap_resource() to simplify the code a bit. > This is detected by coccinelle. > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing Acked-by: Mans Rullgard > --- > drivers/thermal/tango_thermal.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/thermal/tango_thermal.c b/drivers/thermal/tango_ther= mal.c > index 304b461..f44441b 100644 > --- a/drivers/thermal/tango_thermal.c > +++ b/drivers/thermal/tango_thermal.c > @@ -73,7 +73,6 @@ static void tango_thermal_init(struct tango_thermal_pri= v *priv) > > static int tango_thermal_probe(struct platform_device *pdev) > { > - struct resource *res; > struct tango_thermal_priv *priv; > struct thermal_zone_device *tzdev; > > @@ -81,8 +80,7 @@ static int tango_thermal_probe(struct platform_device *= pdev) > if (!priv) > return -ENOMEM; > > - res =3D platform_get_resource(pdev, IORESOURCE_MEM, 0); > - priv->base =3D devm_ioremap_resource(&pdev->dev, res); > + priv->base =3D devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(priv->base)) > return PTR_ERR(priv->base); > > -- = > 2.7.4 > -- = M=E5ns Rullg=E5rd _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel