Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp1214171ybh; Sat, 3 Aug 2019 20:47:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqyoVuA3INqmYoBBTHtKGza/Lpm84KDABE9lJ6N5xa0k6nDM2En5+s40cci2V8CUyqg1E1Sr X-Received: by 2002:a17:902:24e:: with SMTP id 72mr95239478plc.65.1564890463394; Sat, 03 Aug 2019 20:47:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564890463; cv=none; d=google.com; s=arc-20160816; b=DxrQCc9UTm130z/AMZjx2QHlMHamLKVW5v4++MW6xROtqWeEiDKcpxsfth9nE7TsRR hFTAKcvFiza6my1+LUMCUxWq76i0zjdhVimSst0y74+vrv36JtHuist5vvP1YqVwHc6S XY9esk3cvmplCmR57yhF5Jo6yySoe77mjAVcMqpuSCIyjdBJvI8kbSxy7erMrySUI6BQ TcAXezj4BOMub9f/VjKfyZVv5gT7U11iEW7Pv/UXMHPvesuINfa452r+oiGRA3Lp2+ji A8hFg4U7yUOsXG9cvYQINd/Nz0fnYvyF+UJDqMVcKQMB1v/tWiTeYVts6jMDJB2rqnlz nC/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NH76ZaePsP0z4l5OXFKg/g6flaC7aHRV+c6EeQ9kS6o=; b=JRYBUSffG+UE88zBolxSQ1SAxQEMWzkIfm6855Uv081AM7suZJCLauceMsEomdXwCr 0TynMo1KUwCYINjw53yyUwURvfaSUidpCa5rmmYcuCr1mLwqu1+g6yk5hUUOduA6+WKb 8+AtB1+drrb6D149scwL3YeK8fasUnTfcfXu4CwSmcmpNl3AolDxx4n4xvl3nqLnj+xp C2rRN2bTWK0LQAJBJr7dE8BLxgRmSYsis/6JhoUW2xbH6NOyKpUYT2eQI6dY1NI0BgsO EusYkeDBdi+inx90k8LFehmP1xfB+A2oXLmTvlCIbcXzXNuZ1m/8t7L1XQ6+3GQPKGg6 hOpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jamieiles-com.20150623.gappssmtp.com header.s=20150623 header.b=yve9gbrh; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 r4si43394512pgb.245.2019.08.03.20.47.30; Sat, 03 Aug 2019 20:47:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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=@jamieiles-com.20150623.gappssmtp.com header.s=20150623 header.b=yve9gbrh; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388544AbfHCONE (ORCPT + 99 others); Sat, 3 Aug 2019 10:13:04 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:40235 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388759AbfHCONE (ORCPT ); Sat, 3 Aug 2019 10:13:04 -0400 Received: by mail-wr1-f65.google.com with SMTP id r1so80015968wrl.7 for ; Sat, 03 Aug 2019 07:13:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jamieiles-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=NH76ZaePsP0z4l5OXFKg/g6flaC7aHRV+c6EeQ9kS6o=; b=yve9gbrhv6FJmbJUZg2guU8pzriDoGRPtUNSqiUWlqQ4TkPhE7DfhQZ1Lvl6wlYKgn CUij4lT37fx3UBTzDkqS1of8xRypgfYdRJr/ZTXH9n4ogxbAsHcYxCGIrI95URXflv1g FJP9gYfinhrvwugGqlcrYzi3n2ruWV0GhOFk8DMONyy7mf8VlBaevDWMWbiu3MutmmwQ QmpvFm+ZUvNuHH0b4aYZwIypRKx4k7GEt4Eb0TgahitiT6Dp+zPrFxSJt1f2evofobtU wg0yc6oNTEOJez1sFjYfahVNfvSfG3X1JEqTzitL04k5N+LcsbHTEjXGJOyHEMLK2GEh 3LLQ== 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=NH76ZaePsP0z4l5OXFKg/g6flaC7aHRV+c6EeQ9kS6o=; b=YQLUvjB6k3Wsr+Gq1maugFe0x+edL/LAhxAAC8rSrTuJYzlP6D+CfAdScgU25Mn/7G CYl/pGydMjEPd2UMtQTg9kpUogm82yUnorFtu+NzE0rsTjC5+qB0Q7puD+kKY8Co69BI j6XImnnMQ2DY43CZ3StImmrn+Wd7Ht03VPjsFiwn/Lpury4REv4Osm6AJOhEqQzsUHIu aK8FAdOAll5iFygDiWzl1J3keRWaNXwL4iQA2fU72gISN5CuFYm1ezupYPAVad41alkU 4gKK6+DL0TD8+G9FMkk5Ao8v3MV7NGTsIeOYMbxPSyQCkMa/0mWWjKzudw/xfL5OgGIy G7Wg== X-Gm-Message-State: APjAAAV1JqSm0X1rX9wudE6FvE50VEiEmazk1KQrJMg91kxdGw8xWNjC Lgi7Z0j7pKQSFwFIJRRZI7k= X-Received: by 2002:a5d:4b50:: with SMTP id w16mr143525518wrs.132.1564841581912; Sat, 03 Aug 2019 07:13:01 -0700 (PDT) Received: from localhost (cpc128704-hawk17-2-0-cust94.know.cable.virginm.net. [82.38.213.95]) by smtp.gmail.com with ESMTPSA id c65sm80532453wma.44.2019.08.03.07.13.00 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 03 Aug 2019 07:13:00 -0700 (PDT) Date: Sat, 3 Aug 2019 15:13:00 +0100 From: Jamie Iles To: YueHaibing Cc: herbert@gondor.apana.org.au, lars.persson@axis.com, jesper.nilsson@axis.com, davem@davemloft.net, thomas.lendacky@amd.com, gary.hook@amd.com, krzk@kernel.org, kgene@kernel.org, antoine.tenart@bootlin.com, matthias.bgg@gmail.com, jamie@jamieiles.com, agross@kernel.org, heiko@sntech.de, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, clabbe.montjoie@gmail.com, mripard@kernel.org, wens@csie.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, linux-arm-kernel@axis.com, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: Re: [PATCH -next 07/12] crypto: picoxcell - use devm_platform_ioremap_resource() to simplify code Message-ID: <20190803141300.GA26817@willow> References: <20190802132809.8116-1-yuehaibing@huawei.com> <20190802132809.8116-8-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190802132809.8116-8-yuehaibing@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Aug 02, 2019 at 09:28:04PM +0800, YueHaibing wrote: > 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: Jamie Iles > --- > drivers/crypto/picoxcell_crypto.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/crypto/picoxcell_crypto.c b/drivers/crypto/picoxcell_crypto.c > index b985cb85..9a939b4 100644 > --- a/drivers/crypto/picoxcell_crypto.c > +++ b/drivers/crypto/picoxcell_crypto.c > @@ -1624,7 +1624,7 @@ MODULE_DEVICE_TABLE(of, spacc_of_id_table); > static int spacc_probe(struct platform_device *pdev) > { > int i, err, ret; > - struct resource *mem, *irq; > + struct resource *irq; > struct device_node *np = pdev->dev.of_node; > struct spacc_engine *engine = devm_kzalloc(&pdev->dev, sizeof(*engine), > GFP_KERNEL); > @@ -1653,8 +1653,7 @@ static int spacc_probe(struct platform_device *pdev) > > engine->name = dev_name(&pdev->dev); > > - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - engine->regs = devm_ioremap_resource(&pdev->dev, mem); > + engine->regs = devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(engine->regs)) > return PTR_ERR(engine->regs); > > -- > 2.7.4 > >