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=-8.2 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,URIBL_BLOCKED,USER_AGENT_SANE_1 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 E8FE0C3A5A9 for ; Wed, 4 Sep 2019 20:44:54 +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 BAF8D208E4 for ; Wed, 4 Sep 2019 20:44:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="kfiSq9zU"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="TzzsMJ3g" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BAF8D208E4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+infradead-linux-riscv=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:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ilqe7YOISUxk1UWuLKIFvss10ijzz8T/B7I+XVEeJqQ=; b=kfiSq9zUihOx2Z BDiZO2/3zMlP2ZxzgsWuNG9T/ZJrXTT7RGiRAwVuQiYg1muP1TInznO8ojVNJpjPSpoB44TGKTnhs 9JofqfUXDIX9xQtyKSk5cWI/kBWcwz94hSlq3BzyYw3PZEYFG82LEHAdPyBbPgi62+bIYrv5JSVYS M2GWtaGyg6gX174Ww7s2Q74vIvhMV8YImphIcQ87h0LG4mwEihr4s6WytQv7ls3vb2/ls2kZsJPgO vIFCAdIClP5o9gUGzJj7XcPnefG6QscdN4gex/NwHsDsi1tZtr8kpZcMXwKTOrD0UGg3MuE2Co3Nz AQEhnO3NeqcC+RTy6AiQ==; 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 1i5c97-0004cw-I7; Wed, 04 Sep 2019 20:44:53 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i5c8s-0004N3-US for linux-riscv@lists.infradead.org; Wed, 04 Sep 2019 20:44:41 +0000 Received: by mail-pl1-x644.google.com with SMTP id k1so75877pls.11 for ; Wed, 04 Sep 2019 13:44:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=vZGgKk8jeW8NM2wT+HTq6+KHx26Kcf2Hd/HdxeR6J0c=; b=TzzsMJ3gWG917Iis4NdDhBIHth4GqtK3/sv+X2gQXSJdeB0qEqMFs9o843HMPvOYUn vxtcCBUDaWeRrnOi1h22RIfgxWB3iIQod31jZJoOVeGfutT9zeffgawMOBlMyWm9nSwy YYRmz4yz3DSBRuxsOrQNDlVkq2BDtx9qG5bw/7teX4Y2Jiv+jUIX5DTvPqMzRVOzI9X5 4aJ+GjJekgkZ7uptwZX/lTBColHi+7J8HLkvOOdJeAxLEmtHbAncsA81jTFaDEk/tFKN czMqG3CwBQQXU35NXerVTyXs4EAwGQjCKS5/StfvvxlCQdQ0G6qjrLlu6glTZVxMY3++ m0oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=vZGgKk8jeW8NM2wT+HTq6+KHx26Kcf2Hd/HdxeR6J0c=; b=A0eKTyJSTnI2a0uWlutJae58dJn3fqDHJN/mXA7ZlELqJDXgtEi5WOEEoA6x33Sdzn zB/9SS0+ZJwB9eM2DZSgHd7v29cx5imXRiCADvKWP/vs1BSghjVXLu7eOesB9islU/Sy /e3cVjjsHvA0DPEyyx1zjTZU17rJwQxgAqjraE1BpXGME9EU4Utv3nbFS/jWM8S2/8Xn xblE3EvX6L3J7TFQ/C6HUob4ha22Wj/YXjf2t+0WiXves/s9HwCSmKiF8K3PlomDc30p U/nluWQ+XecVwEQBpZ1Qw13SB0q3lSOqq7O35mRySNdYsh1s69DkzvsGoN0mMx9R+X/S 3pvA== X-Gm-Message-State: APjAAAX9kFtm91HEKGEj7hzfXVnt/qOIHU/F3HLzr0XqL0hHTP1NAsex h2S47nkQRKUQCfi6AsVXDq1ULw== X-Google-Smtp-Source: APXvYqx4qZrRLrrr0VmXx5Jsx7rH4OjMuKZvmx+AszzG5hedxbJVd30/b6Bg8l9gTJn3rOqOMRdQqA== X-Received: by 2002:a17:902:7b82:: with SMTP id w2mr41037414pll.250.1567629878103; Wed, 04 Sep 2019 13:44:38 -0700 (PDT) Received: from tuxbook-pro (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id r187sm19257078pfc.105.2019.09.04.13.44.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 13:44:37 -0700 (PDT) Date: Wed, 4 Sep 2019 13:44:33 -0700 From: Bjorn Andersson To: YueHaibing Subject: Re: [PATCH -next 13/36] spi: spi-geni-qcom: use devm_platform_ioremap_resource() to simplify code Message-ID: <20190904204433.GE580@tuxbook-pro> References: <20190904135918.25352-1-yuehaibing@huawei.com> <20190904135918.25352-14-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190904135918.25352-14-yuehaibing@huawei.com> User-Agent: Mutt/1.12.1 (2019-06-15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190904_134438_987902_4EF71F4C X-CRM114-Status: GOOD ( 13.24 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tmaimon77@gmail.com, palmer@sifive.com, tali.perry1@gmail.com, eric@anholt.net, ldewangan@nvidia.com, linux-riscv@lists.infradead.org, festevam@gmail.com, linux-samsung-soc@vger.kernel.org, f.fainelli@gmail.com, benjaminfair@google.com, shc_work@mail.ru, khilman@baylibre.com, openbmc@lists.ozlabs.org, michal.simek@xilinx.com, krzk@kernel.org, jonathanh@nvidia.com, yuenn@google.com, wens@csie.org, agross@kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-imx@nxp.com, linux-arm-msm@vger.kernel.org, linux-tegra@vger.kernel.org, andi@etezian.org, rjui@broadcom.com, s.hauer@pengutronix.de, mripard@kernel.org, broonie@kernel.org, linux-mediatek@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, paul.walmsley@sifive.com, matthias.bgg@gmail.com, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, baohua@kernel.org, sbranden@broadcom.com, yamada.masahiro@socionext.com, avifishman70@gmail.com, venture@google.com, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, thierry.reding@gmail.com, wahrenst@gmx.net, kernel@pengutronix.de, kgene@kernel.org, shawnguo@kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org On Wed 04 Sep 06:58 PDT 2019, YueHaibing wrote: > Use devm_platform_ioremap_resource() to simplify the code a bit. > This is detected by coccinelle. > Reviewed-by: Bjorn Andersson > Reported-by: Hulk Robot > Signed-off-by: YueHaibing > --- > drivers/spi/spi-geni-qcom.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/spi/spi-geni-qcom.c b/drivers/spi/spi-geni-qcom.c > index 242b6c8..6f3d64a 100644 > --- a/drivers/spi/spi-geni-qcom.c > +++ b/drivers/spi/spi-geni-qcom.c > @@ -534,7 +534,6 @@ static int spi_geni_probe(struct platform_device *pdev) > int ret, irq; > struct spi_master *spi; > struct spi_geni_master *mas; > - struct resource *res; > void __iomem *base; > struct clk *clk; > > @@ -542,8 +541,7 @@ static int spi_geni_probe(struct platform_device *pdev) > if (irq < 0) > return irq; > > - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - base = devm_ioremap_resource(&pdev->dev, res); > + base = devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(base)) > return PTR_ERR(base); > > -- > 2.7.4 > > _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv