Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5762865ybp; Tue, 15 Oct 2019 04:47:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkBbpuA50Leqbzkw8W/1dtwJQKmZj9jap8bpoI94SpIUYjbSkQSluSzhU4Crk762RZQCLr X-Received: by 2002:a50:ce16:: with SMTP id y22mr32682057edi.293.1571140035663; Tue, 15 Oct 2019 04:47:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571140035; cv=none; d=google.com; s=arc-20160816; b=VvvD0BLjhX4FDVTvWvg0nYYr1XLv16MZMs798XLR7Jr5t+l28F+JzogUXkfKkzC34V bhcKrwouIKmxw43tzyKFClNxi0zxJiX5e8HwAvdEAa76LU9T/lCUU8+06J+1ECq7zOoh rzIYt0yZuW3OC5P5zSldwtXrFckfyq/8WKTh4qna9wYLPv0guRYtl9KIzn7mAeT0c3lW m8EwUHmHEIea7TRA9pE5c6vXfhg0CnGynSM6w/l+SmuaBJfeXSeBXUGM8Sjsky6jj84V yh701tRx9rTLKUSjjr6vAMIPLeUymaLxA+zVt9DxW2Du4IXLzUYOp+mm2Kj9BlV16hDv xUWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :subject:cc:to:from:date; bh=j6tCBIWklyOJRv0+RxmQTZmJGtnp+vG9nBhoQ9aVpiI=; b=PwsgTO5jlfGc/dhZgGAvWpI2dSbLBOcNFpWpfYXdhL5WbewbMVcqA4Gh4Ey8kWmCSZ cUL2q1t3jCvmqxWwVULAa6zskQ7z3VHOi+67Xfi83Egy/bQhVb65eox7vz2JTQ1UmXom eYHJuYF38T6Ww14YJ3qvI+XMU3zxoJgEWINDHvBjMbSzKwjH6ujLsvQQSKx7Z3cfpVZU 3WFubN2hDgEz9W97snzjL++j9DLeRwyDTllExsAikOVzlTtI+IMgrkS1QDtDY9IMTIoL 4E0qJEkQUqEsv0xc5lCTw6E5EPKGyLuzBRkSpYCfnS3aXQnF6hcyfqoloTKuT4cM63re hPJA== ARC-Authentication-Results: i=1; mx.google.com; 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 i5si14153905edj.107.2019.10.15.04.46.52; Tue, 15 Oct 2019 04:47:15 -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; 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 S1730959AbfJOKkp (ORCPT + 99 others); Tue, 15 Oct 2019 06:40:45 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:22950 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730937AbfJOKko (ORCPT ); Tue, 15 Oct 2019 06:40:44 -0400 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 cc: devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, davem@davemloft.net, herbert@gondor.apana.org.au, khilman@baylibre.com, mark.rutland@arm.com, robh+dt@kernel.org, martin.blumenstingl@googlemail.com 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 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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);