Message ID | 202211111433143392243@zte.com.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp577593wru; Thu, 10 Nov 2022 22:40:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf7az3fwzJbqXOdXrsxk4KM5jbr2584Rdf1RJ707F/IbrXgcxvmxYnkhP+gIbSs7a1tMJ0fX X-Received: by 2002:a05:6402:2b8e:b0:461:b952:8932 with SMTP id fj14-20020a0564022b8e00b00461b9528932mr279410edb.104.1668148813283; Thu, 10 Nov 2022 22:40:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668148813; cv=none; d=google.com; s=arc-20160816; b=rueogXDF6N64am4H8DkPky8oKItWnCCB1ncf1zZkBfGqyRMmDZeinhh9M/d9dvOx9g XVA73Wpi2+sTkou2A36+ixRAGHmAS5aimNuvirtJnERS2j8VqHzPGztIgcvY/8iscEFw XC9a3m+59WvFq+k/zPTSIwj0mrRo0WiSTGUnGlUVtIyOIR7oyqJmcumioW1gheyk26da Utt9aJcjBlg5omVOIUystebKhnl87vOeqOlKKiOdOSKX8RUCYoMpO9mfWfwx+RKfD2Mj MY3LQ0CmKY034VklaNd/B+tFUr0RmAs5TAQhQv5EDZAT9hgHUSXXP9Z26Cxkzu8/JOHz 1N5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:mime-version:message-id:date; bh=YZ4IKQ2LK0ngSopcY9yoc2HGQFztyiVN+baVbUzZVsE=; b=v2qt09c4zdJDSmAPf2mS/G1IwZ/BI4ipIHu0n89UTVeuWC4gOUvUt7mtMi18Q6vOxB tUPg4U8jFEOUdZoIoVdR71BUuKdNIVJuMPpoRU4mrBzIjgCctvai26AC5HHAPAsEYcqn JAzY4uFJRPNaKVHidNkAliAALzeYqne8rLPJJupfxcZPa3o6mvOECiYvVF97BFS5IHC+ Edb4nLOOz8N9j6sU13dsZy48ZSfz8BtvCF/KF0IJCgL8wOMK0enFKoIze+bbche7XSmn 0Y3TqNnEmCRfajwhuhRD/s88MqOANDdAUfgPuKx7FoJOG1YqccNJstl0X/GngGcN8hHl /R4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc2-20020a1709071c0200b007824786a7easi1461764ejc.724.2022.11.10.22.39.50; Thu, 10 Nov 2022 22:40:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232773AbiKKGe4 (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Fri, 11 Nov 2022 01:34:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233050AbiKKGeV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 11 Nov 2022 01:34:21 -0500 Received: from mxct.zte.com.cn (mxct.zte.com.cn [58.251.27.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1108814D17; Thu, 10 Nov 2022 22:33:48 -0800 (PST) Received: from mxde.zte.com.cn (unknown [10.35.20.165]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mxct.zte.com.cn (FangMail) with ESMTPS id 4N7pnQ5vNFz1Dwb; Fri, 11 Nov 2022 14:33:46 +0800 (CST) Received: from mxus.zte.com.cn (unknown [10.207.168.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mxde.zte.com.cn (FangMail) with ESMTPS id 4N7pn71HTcz5TCGC; Fri, 11 Nov 2022 14:33:31 +0800 (CST) Received: from mxhk.zte.com.cn (unknown [192.168.250.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mxus.zte.com.cn (FangMail) with ESMTPS id 4N7pn32kkBzdmYkq; Fri, 11 Nov 2022 14:33:27 +0800 (CST) Received: from mxct.zte.com.cn (unknown [192.168.251.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4N7pmz2Xf7z5PkGm; Fri, 11 Nov 2022 14:33:23 +0800 (CST) Received: from mse-fl1.zte.com.cn (unknown [10.5.228.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxct.zte.com.cn (FangMail) with ESMTPS id 4N7pmw6h5Pz501Qd; Fri, 11 Nov 2022 14:33:20 +0800 (CST) Received: from xaxapp01.zte.com.cn ([10.88.40.50]) by mse-fl1.zte.com.cn with SMTP id 2AB6XCw2066862; Fri, 11 Nov 2022 14:33:12 +0800 (+08) (envelope-from ye.xingchen@zte.com.cn) Received: from mapi (xaxapp02[null]) by mapi (Zmail) with MAPI id mid31; Fri, 11 Nov 2022 14:33:14 +0800 (CST) Date: Fri, 11 Nov 2022 14:33:14 +0800 (CST) X-Zmail-TransId: 2afa636decaaffffffffeb37579f X-Mailer: Zmail v1.0 Message-ID: <202211111433143392243@zte.com.cn> Mime-Version: 1.0 From: <ye.xingchen@zte.com.cn> To: <stern@rowland.harvard.edu> Cc: <gregkh@linuxfoundation.org>, <linux-usb@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <chi.minghao@zte.com.cn> Subject: =?utf-8?q?=5BPATCH=5D_usb=3A_ehci-orion=3A_use_devm=5Fplatform=5Fge?= =?utf-8?q?t=5Fand=5Fioremap=5Fresource=28=29?= Content-Type: text/plain; charset="UTF-8" X-MAIL: mse-fl1.zte.com.cn 2AB6XCw2066862 X-Fangmail-Gw-Spam-Type: 0 X-FangMail-Miltered: at cgslv5.04-192.168.251.14.novalocal with ID 636DECC9.000 by FangMail milter! X-FangMail-Envelope: 1668148427/4N7pnQ5vNFz1Dwb/636DECC9.000/10.35.20.165/[10.35.20.165]/mxde.zte.com.cn/<ye.xingchen@zte.com.cn> X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 636DECC9.000/4N7pnQ5vNFz1Dwb X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749180809752944394?= X-GMAIL-MSGID: =?utf-8?q?1749180809752944394?= |
Series |
usb: ehci-orion: use devm_platform_get_and_ioremap_resource()
|
|
Commit Message
ye.xingchen@zte.com.cn
Nov. 11, 2022, 6:33 a.m. UTC
From: Minghao Chi <chi.minghao@zte.com.cn> Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn> --- drivers/usb/host/ehci-orion.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Comments
On Fri, Nov 11, 2022 at 02:33:14PM +0800, ye.xingchen@zte.com.cn wrote: > From: Minghao Chi <chi.minghao@zte.com.cn> > > Convert platform_get_resource(), devm_ioremap_resource() to a single > call to devm_platform_get_and_ioremap_resource(), as this is exactly > what this function does. > > Reported-by: Zeal Robot <zealci@zte.com.cn> You did not follow the rules when using a tool to find and fix problems, please read the documentation for how to do so correctly. > Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn> Your email is showing up as being invalid, and spoofed, please work with your domain to properly handle verified email otherwise it will not be able to be accepted. thanks, greg k-h
diff --git a/drivers/usb/host/ehci-orion.c b/drivers/usb/host/ehci-orion.c index a3454a3ea4e0..d0970caf3c3a 100644 --- a/drivers/usb/host/ehci-orion.c +++ b/drivers/usb/host/ehci-orion.c @@ -234,8 +234,7 @@ static int ehci_orion_drv_probe(struct platform_device *pdev) if (err) goto err; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - regs = devm_ioremap_resource(&pdev->dev, res); + regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(regs)) { err = PTR_ERR(regs); goto err;