From patchwork Tue Oct 15 10:40:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 11190003 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 51D6E912 for ; Tue, 15 Oct 2019 10:41:04 +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 2C8312086A for ; Tue, 15 Oct 2019 10:41:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DIf8+eEM" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2C8312086A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lip6.fr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.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:Subject:To:From :Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=UAyCGI+rLl94/0mG23pGC1ZMcSajv/vIrBgXKyQtZ4M=; b=DIf8+eEMNAqMLO MMd6zlojFB4tJrIDec/g36RLu4AKT9SKJgjGw2djBwqjkchkftV8lYnXKwGKknAtiozsnmzsyYD5A 5EyhMffkwzqikpgAxCRroSRL7NTu1ZxmHdzLaTHsp1/0/G/+ujNFpKbkzox37zYhTIYFMBYaJkzLd s236s/hTXh/2gTM/EDglcr86vQmOT4wwdkOuU3ahgUbs3SJWW/a8r3RVikFO9VZTL3YLO3OXd7eLQ uEu8m574PAhkclBgEeBAzZwRpLNahyBTesmmPhsIM8MGZB6hkFEUa/6ukfFPfnUODU453E3Uxf4A+ xiBAGAWMJGHoD1xuYBYA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iKKG8-0002H4-ON; Tue, 15 Oct 2019 10:40:56 +0000 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iKKG3-0002Ep-Ql; Tue, 15 Oct 2019 10:40:53 +0000 X-IronPort-AV: E=Sophos;i="5.67,299,1566856800"; d="scan'208";a="322757199" Received: from portablejulia.rsr.lip6.fr ([132.227.76.63]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Oct 2019 12:40:42 +0200 Date: Tue, 15 Oct 2019 12:40:42 +0200 (CEST) From: Julia Lawall X-X-Sender: julia@hadrien To: Corentin Labbe Subject: [PATCH] crypto: amlogic: fix devm_platform_ioremap_resource.cocci warnings Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191015_034052_162637_8FFA1EB7 X-CRM114-Status: UNSURE ( 8.44 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.2 (----) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-4.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [192.134.164.104 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.7 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) 0.1 HDRS_LCASE Odd capitalization of message header 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: mark.rutland@arm.com, devicetree@vger.kernel.org, herbert@gondor.apana.org.au, martin.blumenstingl@googlemail.com, khilman@baylibre.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, linux-crypto@vger.kernel.org, linux-amlogic@lists.infradead.org, davem@davemloft.net, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: kbuild test robot drivers/crypto/amlogic/amlogic-gxl-core.c:241:1-9: WARNING: Use devm_platform_ioremap_resource for mc -> base Use devm_platform_ioremap_resource helper which wraps platform_get_resource() and devm_ioremap_resource() together. Generated by: scripts/coccinelle/api/devm_platform_ioremap_resource.cocci Fixes: 28b8a60c6c83 ("crypto: amlogic: Add crypto accelerator for amlogic GXL") CC: Corentin Labbe Signed-off-by: kbuild test robot Signed-off-by: Julia Lawall --- url: https://github.com/0day-ci/linux/commits/Corentin-Labbe/crypto-add-amlogic-crypto-offloader-driver/20191014-133654 base: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master :::::: branch date: 7 hours ago :::::: commit date: 7 hours ago amlogic-gxl-core.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/drivers/crypto/amlogic/amlogic-gxl-core.c +++ b/drivers/crypto/amlogic/amlogic-gxl-core.c @@ -223,7 +223,6 @@ static void meson_unregister_algs(struct static int meson_crypto_probe(struct platform_device *pdev) { - struct resource *res; struct meson_dev *mc; int err, i; @@ -237,8 +236,7 @@ static int meson_crypto_probe(struct pla mc->dev = &pdev->dev; platform_set_drvdata(pdev, mc); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - mc->base = devm_ioremap_resource(&pdev->dev, res); + mc->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(mc->base)) { err = PTR_ERR(mc->base); dev_err(&pdev->dev, "Cannot request MMIO err=%d\n", err);