Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4624101ybp; Mon, 7 Oct 2019 11:12:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqwp6D0hsePg8es8V1zc8vC6fQXEtysLE3t7Skuhr+ipyX6pzTtR2PKTRCmlrW8T6FCifbFf X-Received: by 2002:a50:ab0f:: with SMTP id s15mr1436630edc.119.1570471939302; Mon, 07 Oct 2019 11:12:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570471939; cv=none; d=google.com; s=arc-20160816; b=iueX9B51zwGnlKvRYgffw254HW4hTArZQ8flxWAF0Gji90i5UyIYmxnbg0/KkW0pDC kLb3VPNNBUX9+r3N5hkRtasSaOk3spO9adg6bnAR8y6a9UqdvcA3BktSkf8zAL03kVNN ytdvD0KxPbbfZvw+45VZAdPJV/O82RusiOrrKM7IHat/XT5vP5rz907mgD4a99Y8JQ6A cOXcOnr5luMEEIkv41m1zQq/QR21UlrdMYde7gXTH67ws1tx0ENqB1LDt9tOUAE8VWFq rWb1T8/SdiI7VKeQg1rTsb/zGvQLXZiEGGg+A2SrQy8RAeURq0hH3HEF7Z1DKhCNCQhO VpgQ== 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:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=GeChysEpyXENIdkz70FTwZQNrGJAliQm6LKcOJ4pwgg=; b=BWW3YaiXHkStQ57Ouistd0LEJ9h+nfk+djgfQUH611Ypws6gN2px2/Oo+gPIcVrJYj FLhkxAJLalcFDiU2cAglAQZUvp2vdGNwHny02pmyVlQiJyVtwPMhnX1IVEF1+UNum305 dwDDVX0qU/nYbT86Dd1fgTFNaWuKI6JtQqALBmpEZsM51648QrNt3FxzVXAmh/1ckhpQ FV59H+gzcFfX21y/cb49u/wdW/bz2z8zz6caWK3afYcLCfaySgazfrK8MTqXG57csIeK VSYOXN98ym84sfv6px/MN+OrtYjzwPqAlAbgH71Vu7ikLp6vrkDXIrk79psiKglOqoTQ R1og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=1g4svc2i; 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 x20si7414499ejb.393.2019.10.07.11.11.55; Mon, 07 Oct 2019 11:12:19 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=1g4svc2i; 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 S1729302AbfJGSJR (ORCPT + 99 others); Mon, 7 Oct 2019 14:09:17 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:46358 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728665AbfJGSJR (ORCPT ); Mon, 7 Oct 2019 14:09:17 -0400 Received: by mail-pg1-f194.google.com with SMTP id b8so2332576pgm.13 for ; Mon, 07 Oct 2019 11:09:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=GeChysEpyXENIdkz70FTwZQNrGJAliQm6LKcOJ4pwgg=; b=1g4svc2i2jhyiyQgS7H2WqaqlY4rawaEfSSoyLIcO9cblF0u1gFFqp/KTw35+0FZfc MwzkbFI30GsMRmv2OloegWaVbSjb8KDnm+dfMEbweYWsOm1wGCxZsUSg/z+13uH3xzh1 RupL3Su0rST4Jq9HoZjj9nGm9XoyTwDep1/8UQyx/IVu9uLc6qpUfKWUlHyLvUMgJXNW aB2X3gCDtmoi4cYwtVghiMaLgJrHmdzn/5lss3HRCyoE4uQU4faG8oZ0vBV7mGtmCjn5 1yBEDl3LzEuJXvBb0Jp2SepKw/cROrKcSFBMbcUwB1odwRJ0Wn5DcdTOh2g1tJhlI8t4 bchA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=GeChysEpyXENIdkz70FTwZQNrGJAliQm6LKcOJ4pwgg=; b=h0n8l18oj0xaVB6OntcZ3dfIEfmWnolidoOglqpb3NFaDBxg+SmW2gpOpW2Qns5Dmh obfT6C0FnpWidx0BTKAZXJBZl8atJ75Qu1ashnN44FMw79rM3JcBQVMxlKUypmoBNGWk EJZDXG5aldFym62U3EVULhlqs38OMf5yIVxP0a9nSu4yUuIetI1nb7OuCs8nqHUN7+rv VcNMIJf6+Oi1VpPcMqcy6aMG0pM8XIU0Le47gRUnAdxFFpxGWoC7E0dDeKUuOvaoAvph aJB9cf+RkVPZDtjpNmD+cKwyAvYFqMd1JHSxzZl/Xj9cjUrDW4AcHSC+mCJ0T+0szUxM 2Gqw== X-Gm-Message-State: APjAAAUxxlUD99SxarIgPEPeXCtpUo3af70JMw9TbDb4nhmZWI80+Q2k KPdTp+PYshCwWZz+ZJdKJjF73w== X-Received: by 2002:a65:688a:: with SMTP id e10mr31994989pgt.221.1570471756657; Mon, 07 Oct 2019 11:09:16 -0700 (PDT) Received: from localhost ([2601:602:9200:a1a5:bd18:5fe6:bf81:d473]) by smtp.gmail.com with ESMTPSA id s73sm155793pjb.15.2019.10.07.11.09.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 07 Oct 2019 11:09:16 -0700 (PDT) From: Kevin Hilman To: YueHaibing , a.zummo@towertech.it, alexandre.belloni@bootlin.com, joel@jms.id.au, andrew@aj.id.au, nicolas.ferre@microchip.com, ludovic.desroches@microchip.com, computersforpeace@gmail.com, gregory.0xf0@gmail.com, f.fainelli@gmail.com, bcm-kernel-feedback-list@broadcom.com, linus.walleij@linaro.org, baruch@tkos.co.il, paul@crapouillou.net, vz@mleia.com, slemieux.tyco@gmail.com, eddie.huang@mediatek.com, sean.wang@mediatek.com, matthias.bgg@gmail.com, patrice.chotard@st.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, mripard@kernel.org, wens@csie.org, thierry.reding@gmail.com, jonathanh@nvidia.com, linux@prisktech.co.nz, michal.simek@xilinx.com Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-amlogic@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-tegra@vger.kernel.org, YueHaibing Subject: Re: [PATCH -next 16/34] rtc: meson: use devm_platform_ioremap_resource() to simplify code In-Reply-To: <20191006102953.57536-17-yuehaibing@huawei.com> References: <20191006102953.57536-1-yuehaibing@huawei.com> <20191006102953.57536-17-yuehaibing@huawei.com> Date: Mon, 07 Oct 2019 11:09:15 -0700 Message-ID: <7hk19gfmwk.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org YueHaibing writes: > Use devm_platform_ioremap_resource() to simplify the code a bit. > This is detected by coccinelle. > > Signed-off-by: YueHaibing Reviewed-by: Kevin Hilman > --- > drivers/rtc/rtc-meson.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/rtc/rtc-meson.c b/drivers/rtc/rtc-meson.c > index e08b981..9bd8478 100644 > --- a/drivers/rtc/rtc-meson.c > +++ b/drivers/rtc/rtc-meson.c > @@ -292,7 +292,6 @@ static int meson_rtc_probe(struct platform_device *pdev) > }; > struct device *dev = &pdev->dev; > struct meson_rtc *rtc; > - struct resource *res; > void __iomem *base; > int ret; > u32 tm; > @@ -312,8 +311,7 @@ static int meson_rtc_probe(struct platform_device *pdev) > rtc->rtc->ops = &meson_rtc_ops; > rtc->rtc->range_max = U32_MAX; > > - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - base = devm_ioremap_resource(dev, res); > + base = devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(base)) > return PTR_ERR(base); > > -- > 2.7.4