Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp254376ybg; Thu, 17 Oct 2019 22:29:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqyf6ajaJHUa/s6d74ONsP2VpxNaOJl7t40Hxe0+dyVbnAv+CLDaqKicY3zXIhWZOi68kwQe X-Received: by 2002:a17:906:bfcb:: with SMTP id us11mr6932931ejb.299.1571376559872; Thu, 17 Oct 2019 22:29:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571376559; cv=none; d=google.com; s=arc-20160816; b=G0hMa6bkmEG9TK89No+NdhVc1z/6tBrEl6WaAvvynpDlpfoAaQTdho4SIyBL0o06gO fehhmvBpp/Scbk/LopDxVWrM46GZ6yAGiiNZt/MjLAQxSshAh3/yrtF6F5QEhxX3VNHD zbEYdyFvf2LrDnpdE9xvW/8nID3GazCj33HF+3Tuki0suuI1saFo40LtnOzfOZMXH38v 1y/mKqUfNh4yDvtL4AhFAgFsNFulf1Oi1582asLOxbp9RGVsTjI4Xkw33IDj3h4m9k1u 2+3/PsKJ8NEmVYEws76tjLU726ACPMoyELS3O+fY27ZE7Mdd3+UQZIyrl9iga3C6J0cb ABwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=Ch1s0068lTf0i+EDk+ehUrPC/rSc+GVPHqm5qhe8100=; b=HAfS0uZUE+LQH8C5VNWHrV3OqVN17OqKRp3IjEwG+Z9D9LPdnVmkiflkT+iQUQkNhx Axdy3fJU864LJoqUiDxdizLFV3ayib3TpGGS0aKlGpfbgV0JZxWVsGoabgYOaM1dTvhn Zx43MpzYgdIqmuq/LqX3CJMCr4OVAjQXJKyMKaCyc1djFUfNw7KaMtRtAokVt2fGGJTa n6QbA74liReJQxYi8eWLuCCepJoCcZB1kfaDoC4/eQKsdz83DZHt9g1e+jmx1gdPJcJG FszXK8lDq9VXBokGxcST08j+HJ/dz5M/RalCIPvHBQMmvCAovs1e5E/ISmI5LhMAAdym 1ZMA== 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 m22si2549012ejr.368.2019.10.17.22.28.56; Thu, 17 Oct 2019 22:29: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; 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 S2390384AbfJQB1Y (ORCPT + 99 others); Wed, 16 Oct 2019 21:27:24 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4194 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727916AbfJQB1Y (ORCPT ); Wed, 16 Oct 2019 21:27:24 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 735A76153B773426C5B9; Thu, 17 Oct 2019 09:27:20 +0800 (CST) Received: from [127.0.0.1] (10.133.213.239) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.439.0; Thu, 17 Oct 2019 09:27:17 +0800 Subject: Re: [PATCH -next 00/13] hwrng: use devm_platform_ioremap_resource() to simplify code To: Florian Fainelli , , , , , , , , , , , , , , , , , , References: <20191016104621.26056-1-yuehaibing@huawei.com> <2c60b926-1e98-cca0-ec17-6b45f9da404a@gmail.com> CC: , , , , , , From: Yuehaibing Message-ID: <7c0269b6-cab3-bded-7f9d-76430be89f9c@huawei.com> Date: Thu, 17 Oct 2019 09:27:13 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <2c60b926-1e98-cca0-ec17-6b45f9da404a@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/10/17 0:44, Florian Fainelli wrote: > On 10/16/19 3:46 AM, YueHaibing wrote: >> devm_platform_ioremap_resource() internally have platform_get_resource() >> and devm_ioremap_resource() in it. So instead of calling them separately >> use devm_platform_ioremap_resource() directly. > > Did your coccinelle script not cover > drivers/char/hw_random/iproc-rng200.c somehow? Do you mind including it > as a separate patch? A patch from Markus Elfring has be queued: commit a68b931932c5574aa5bd459529c766ba577c72b3 Author: Markus Elfring Date: Wed Sep 18 09:09:22 2019 +0200 hwrng: iproc-rng200 - Use devm_platform_ioremap_resource() in iproc_rng200_probe() Simplify this function implementation by using a known wrapper function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Reviewed-by: Ray Jui Reviewed-by: Florian Fainelli Signed-off-by: Herbert Xu > Thanks > >> >> YueHaibing (13): >> hwrng: atmel - use devm_platform_ioremap_resource() to simplify code >> hwrng: bcm2835 - use devm_platform_ioremap_resource() to simplify code >> hwrng: exynos - use devm_platform_ioremap_resource() to simplify code >> hwrng: hisi - use devm_platform_ioremap_resource() to simplify code >> hwrng: ks-sa - use devm_platform_ioremap_resource() to simplify code >> hwrng: meson - use devm_platform_ioremap_resource() to simplify code >> hwrng: npcm - use devm_platform_ioremap_resource() to simplify code >> hwrng: omap - use devm_platform_ioremap_resource() to simplify code >> hwrng: pasemi - use devm_platform_ioremap_resource() to simplify code >> hwrng: pic32 - use devm_platform_ioremap_resource() to simplify code >> hwrng: st - use devm_platform_ioremap_resource() to simplify code >> hwrng: tx4939 - use devm_platform_ioremap_resource() to simplify code >> hwrng: xgene - use devm_platform_ioremap_resource() to simplify code >> >> drivers/char/hw_random/atmel-rng.c | 4 +--- >> drivers/char/hw_random/bcm2835-rng.c | 5 +---- >> drivers/char/hw_random/exynos-trng.c | 4 +--- >> drivers/char/hw_random/hisi-rng.c | 4 +--- >> drivers/char/hw_random/ks-sa-rng.c | 4 +--- >> drivers/char/hw_random/meson-rng.c | 4 +--- >> drivers/char/hw_random/npcm-rng.c | 4 +--- >> drivers/char/hw_random/omap-rng.c | 4 +--- >> drivers/char/hw_random/pasemi-rng.c | 4 +--- >> drivers/char/hw_random/pic32-rng.c | 4 +--- >> drivers/char/hw_random/st-rng.c | 4 +--- >> drivers/char/hw_random/tx4939-rng.c | 4 +--- >> drivers/char/hw_random/xgene-rng.c | 4 +--- >> 13 files changed, 13 insertions(+), 40 deletions(-) >> > >