Message ID | 202211171405502792797@zte.com.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp236844wrr; Wed, 16 Nov 2022 22:12:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf59l3WUiyoaao0Lsy9txKZalNsTBpnXf+k1Sag19STBLtYrRn7VEaIIPTayrcgDiFmvkZl6 X-Received: by 2002:a17:906:dfef:b0:7ae:db2:f10a with SMTP id lc15-20020a170906dfef00b007ae0db2f10amr909841ejc.709.1668665579442; Wed, 16 Nov 2022 22:12:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668665579; cv=none; d=google.com; s=arc-20160816; b=U/In7BYP22wHMjJDVQoEmGLnuc2u9MNsb12Qqkt15x4BVCotTo/JrmXUNI6KDrFP43 EQYuRtlgsXhhZCZh0mcryw3ymTw6HFA04pkPY/BT16xhfDDkmimlk+X4IcetirdfSJwc pST1EiKyNZUPiZ+cRW4itFa/zZfejRhVVYs+CNBhxo8dY5QVKWWqkZ96xJGM+NEvobZw 5cb1ZyKxHneXbjIDCvvUMbkjbJcRCuHzcnln4cnO+EzS4GWGyUxDrdzolOhGUMfxx8Z1 8T/f+OV/oUcRa0B/rKyW/kUr8OSbiDWFD7TnezKFZrz261UV8nrFfF1Kpf6ItJQ9KTGo 5uQg== 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=OhYuQnBCwkljdZvU5pdTSSacla0dJr211XVSElqRSMk=; b=yEryn99Now0mB4lePjFvI07Iq39qK1SV1g5HPIo81GxEth+oGNMNi3QLoArDBLOMPV YdYxRONtBsDgr7RVlK/Z8Ze4pcrFSuG6lvl6HMPjMTcAB9AFlKX2EK1pAjj9gfp9kg0l hBmX4eH2jz+SvAr9i6bE0qp1PU8asbOjpzWic9RmNHVIQ+K3HG6Rd73Fd7oJzrEdHLGi AeOESCEu89SqKBvo44E/BFyaB/enVucqMFvswETUF+4GpzByqJfp+DtltvJa9cOem5Ui 9nX50ipnB2wEwl5Pxj+Ckd3qI+pWLOLxOb6CnYIT+7V5pifJI+EFUD8Gr1GxA0H1d8VM tgWw== 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 v3-20020a056402348300b0045b265a1712si162822edc.595.2022.11.16.22.12.36; Wed, 16 Nov 2022 22:12:59 -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 S234412AbiKQGF7 (ORCPT <rfc822;just.gull.subs@gmail.com> + 99 others); Thu, 17 Nov 2022 01:05:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229943AbiKQGF4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 17 Nov 2022 01:05:56 -0500 Received: from mxct.zte.com.cn (mxct.zte.com.cn [183.62.165.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E253427B16 for <linux-kernel@vger.kernel.org>; Wed, 16 Nov 2022 22:05:54 -0800 (PST) Received: from mse-fl2.zte.com.cn (unknown [10.5.228.133]) (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 4NCTtS3SDKz4y0vK; Thu, 17 Nov 2022 14:05:52 +0800 (CST) Received: from xaxapp01.zte.com.cn ([10.88.40.50]) by mse-fl2.zte.com.cn with SMTP id 2AH65mHN083361; Thu, 17 Nov 2022 14:05:48 +0800 (+08) (envelope-from ye.xingchen@zte.com.cn) Received: from mapi (xaxapp01[null]) by mapi (Zmail) with MAPI id mid31; Thu, 17 Nov 2022 14:05:50 +0800 (CST) Date: Thu, 17 Nov 2022 14:05:50 +0800 (CST) X-Zmail-TransId: 2af96375cf3e43e4b876 X-Mailer: Zmail v1.0 Message-ID: <202211171405502792797@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-omap@vger.kernel.org>, <linux-kernel@vger.kernel.org> Subject: =?utf-8?q?=5BPATCH=5D_usb=3A_ehci-omap=3A_use_devm=5Fplatform=5Fget?= =?utf-8?q?=5Fand=5Fioremap=5Fresource=28=29?= Content-Type: text/plain; charset="UTF-8" X-MAIL: mse-fl2.zte.com.cn 2AH65mHN083361 X-Fangmail-Gw-Spam-Type: 0 X-FangMail-Miltered: at cgslv5.04-192.168.251.13.novalocal with ID 6375CF40.000 by FangMail milter! X-FangMail-Envelope: 1668665152/4NCTtS3SDKz4y0vK/6375CF40.000/10.5.228.133/[10.5.228.133]/mse-fl2.zte.com.cn/<ye.xingchen@zte.com.cn> X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 6375CF40.000/4NCTtS3SDKz4y0vK 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?1749722678525414962?= X-GMAIL-MSGID: =?utf-8?q?1749722678525414962?= |
Series |
usb: ehci-omap: use devm_platform_get_and_ioremap_resource()
|
|
Commit Message
ye.xingchen@zte.com.cn
Nov. 17, 2022, 6:05 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. Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn> Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn> --- drivers/usb/host/ehci-omap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Comments
On Thu, Nov 17, 2022 at 02:05:50PM +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. > > Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn> > Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn> > --- > drivers/usb/host/ehci-omap.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - This looks like a new version of a previously submitted patch, but you did not list below the --- line any changes from the previous version. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what needs to be done here to properly describe this. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot
diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c index 7dd984722a7f..962e3e6ab4d8 100644 --- a/drivers/usb/host/ehci-omap.c +++ b/drivers/usb/host/ehci-omap.c @@ -113,8 +113,7 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev) if (irq < 0) return irq; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - regs = devm_ioremap_resource(dev, res); + regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(regs)) return PTR_ERR(regs);