Message ID | 20230726113816.888-21-frank.li@vivo.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp356907vqo; Wed, 26 Jul 2023 05:13:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlEJgYVS2UO6Qu4IbYt4ieR9NoYi5I9ZUsQ1Vb7lAAmuCeCYaoy1oXE5PyWtG4DiEqhfMnY0 X-Received: by 2002:a17:906:7a12:b0:993:ec93:a5ef with SMTP id d18-20020a1709067a1200b00993ec93a5efmr1519256ejo.47.1690373622129; Wed, 26 Jul 2023 05:13:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690373622; cv=pass; d=google.com; s=arc-20160816; b=AyMCdmV/t3XjJd63Ousj3tktToLMbMaQlFRKYE4MTKHCs2evJ8OeWNwVOtun05QWys AOOsGR4YyP2GH3oCUCrj6KKZTaFW8sWXRpzko/1FgvfcRqxqECbGTgoZ6gOS671+bRrS gEfm4uVs+kDkqssIj+cS/Q5/Whj4aPdQt9BTmHI9pvf2ShsoPKI5cUS82NFIQ1TYdUNi irvErEKyws7PRBAdwtdyOAL85vRSRQ38F8HRSD1XgOtClVZa7Kyx+3qV9e0F7+pFu0G/ Tetcceam/s96VWgwc7nQn8reHe5TY1iDAuUleo+D6vvCT7G9RCXl5OCDwAu9MMKhd0Bg ChNg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0UmBg57MQIr5hyrMZJTzcboQ9sMxMX2/pgWvrf948Kk=; fh=bMC5P8+r1uhJNT7JdPC950luRXJM8ZVXe+jJ3ryOPds=; b=RBC1M/9zBSVyteWgRzYxhWt6pr1fBnWk8YC4RcJDN4zVpBZ8fqVAS7fc7BpBUGNtNZ 2X0XCAGuJRlX9yoc5M1xmUb82PD5JZAqWnHoH329rk2Yh4yLJuNsIddHxNbHwZ9H95IX 83rusa1tUqIGVmhUK4UAZNzILZVGoIUVpqREEg4d/QopIXOWMEKe/P5p8neEtZ+LxQx2 erDzfQslQy6tH7pEv0qsDdNJB3gBeESZ6blYV3HG5KAalmOHwBOTe8mGLDjZbkl8h2mr S4nsDoWYZkunv80HdewvvhANI9NGQsLifTxHJ24mUSLvaXZ9xYjtR23Qlx3F+nMWYAwS twDw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=QuFXx5Xc; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l14-20020a1709066b8e00b00982a267a399si9145829ejr.561.2023.07.26.05.13.17; Wed, 26 Jul 2023 05:13:42 -0700 (PDT) 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; dkim=pass header.i=@vivo.com header.s=selector2 header.b=QuFXx5Xc; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234137AbjGZLlK (ORCPT <rfc822;kloczko.tomasz@gmail.com> + 99 others); Wed, 26 Jul 2023 07:41:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233894AbjGZLky (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 26 Jul 2023 07:40:54 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2125.outbound.protection.outlook.com [40.107.255.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4716230D6; Wed, 26 Jul 2023 04:40:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QyDKlGEUgMS6IJOFvOl905EZ02aj0f+gCVMFPTPPQyrtF2jPLltdXhIGn0pKzjIJzb+f7piFe3dCN5fVvd08Z9hXiVaXR6CUjmuEvwpu3jpdOy/tgFLipmQpILNBYSzYrL8J1yZ8T8cek7cZjLNWxV/7l2eS5XIquY3T0ed9kMgvFCfPTjaU7qtPL2gdGF+8iOl8qZpN3ByVKomhSwnd7NKseVFWIiHzNn6F2+Uy/fN+n3UzmMTTM7fZ0mcQun+eEnw4itkwEyMnxDFLnfA8qyuf1yfQXv+XvR6xmSmyVAdL7lwwiPds4MC0+9kMaB8ZB7umHYvrgeQcMv+TTjZ9Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0UmBg57MQIr5hyrMZJTzcboQ9sMxMX2/pgWvrf948Kk=; b=OeJqVSC1/iL6TjXAX2k9yP9AniILhKeh/cVNkFhJGhz4GxUhCB5p3uvuFJwqy0yy8t5nyMcKQQ9J73C+V6TGHn+sn65mXBE/ABD6DvpzQW86Vm0Ajs17fJ/dk9q7goVHO1d+qehx+dRbvh7HFmXSJ31d0NO0xYloCN2OaOqE2OKs1gknfga/7Rgd6Vl5n2vDxY9A1pN5FnkbhP77arPgtdndVIWDJuiY82lqbUVYAklo4Ll49SnCdUtHc4Tn4ZAvwwLLDgGdsclym+Yy8XXktKpmhBnCp7DLu2Q1CYB987qjpK4RkGsAidvYFgq3+ahiElBuFP+cLIOmkF7hpYpDxA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0UmBg57MQIr5hyrMZJTzcboQ9sMxMX2/pgWvrf948Kk=; b=QuFXx5XcT1FWStqUMqhzOuSSgPvBwRFNfC48x+HNaFDeFYv603bowC0cWNzPXSVostrKlCOV85DOyIMPmETpn33NPmE9arzKC6fHRSvduo5jBBOcHUhOKbHbgFPMxdY/kkLjBLhEE3P03osGqN8KedL0rGbcsUCUu7Se8oA/JRsIqs6SpE+w5ADpMs63nDrNGO9qvk0nysRN9f8dgaBTOQODF1ucmwBqZaAS/lYf3wrzonRYlFF5ocEZMEeoTbUmM2x0LM6S0ZT1oiaYB0VnQYhFnk1DFwp82t3MQFQ0xf2gVci7q9NBMtOVlqMy0ygASYwWSiRQDsy6Zo/kq3iZug== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by SI2PR06MB4203.apcprd06.prod.outlook.com (2603:1096:4:e8::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.31; Wed, 26 Jul 2023 11:38:59 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::732f:ea1d:45a1:1e0b]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::732f:ea1d:45a1:1e0b%3]) with mapi id 15.20.6631.026; Wed, 26 Jul 2023 11:38:59 +0000 From: Yangtao Li <frank.li@vivo.com> To: Alan Stern <stern@rowland.harvard.edu>, Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Yangtao Li <frank.li@vivo.com>, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 21/30] usb: ehci-fsl: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:38:07 +0800 Message-Id: <20230726113816.888-21-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230726113816.888-1-frank.li@vivo.com> References: <20230726113816.888-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2P153CA0033.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SI2PR06MB4203:EE_ X-MS-Office365-Filtering-Correlation-Id: 6f04a105-e1b3-4940-abd0-08db8dcce6cd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LCoSpqbUDo+3gB9dcoI1xSLJ/j2yq8wdXSHEqSrxyKalYvgkcsik/MfQGBmWlrimZ+P+9F9uV6IVAoLqB+MkYJrqF/AiLuU09QavT4BeDGDvyIXS/fmec92C3IyIVXjEvM0mlmAXJPCvEVa1mio3Y3/NAGC6SynijjrbtM6cU+vwOPGeDrU8kGfehsXP9Mc82sAG/EehJOtUG/aSoYSRatPxG6iT/zSrkW/ugDmVMzREqGfW2LsykasOLJGNYJTujhB+7Ef3QEbgOFSFq43M5IAMiZScR/fanDyE6z8rbc0mNfuDKgfDxgngMHPTG8luT3XY96Uoyqi6HFPLRLaIk2QD0uQbt8aTozPH+KnMavkSMnK3LsW7gHPEq8b/NHarzjutT+wwG+lqWlrCl4IQZjsP0soSsQgEYuiEv0hLGZzoyiDlPj6vqCuTvQl+pgUrOoB/nBD7CiBCwq9bMcRcu794EL+DT+hVqR+Ar8sgavR6oNBsFSoIwTPAo4vmexGEkgq5vaBBSnMGEuPeuFpnt5QxVwR8gCNcpC4wqOmsmhnusCxrzYt52mPOeLw2xOt2yp5yrf6Fbo5LAWRa0jRnkV7j6nKevkjFvIl4g6RBOAjhBxorFL5wQa9gYzP3qkFt X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(39860400002)(396003)(346002)(376002)(136003)(451199021)(86362001)(38100700002)(38350700002)(66556008)(478600001)(4326008)(316002)(110136005)(6512007)(8936002)(5660300002)(8676002)(6666004)(6486002)(2906002)(1076003)(186003)(52116002)(4744005)(26005)(6506007)(83380400001)(66946007)(41300700001)(36756003)(66476007)(2616005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ch3agO31shaC4c5UrxPq1NdTfoFj34jAREQaKj9S7/P2iw9SapLTxzut2vV0BD2w2dKzvAQ+Isn31VA6d+05WB3dY8x/heIrMyNv4UG1uhPWeTownqFIrRSThMzpmW+PeKgVKxlbVWKb/4ulrlvFHboj0yju1a+vNVta+TLn3nureS7CT9ISbZ34rtsmoaV9R/qCoJzWfiI+QWGuQiPjxxLdQP+WwbwJnXftBLQOqUbTtq7NboMC4sSecocLP/pZaYzea1LlwVTJ8piHR2+mgLQnjI15N38dnGnk5HUMok+JburHSoXaMwTt5Xj6iyQdUhv0rYZweje3g6CFGwCzfuU6IYqrsuIsM76kLaC0rCrUmGCLDH3+d4pAkKg/ADZYboBgjCpHIIZ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0rP0tpYFYY94JmgobbpKoX+XB1f8O1ttSir6mJUutq91niuIeerwiwpCX//+7JxB3Xs7m5Ctu7BjId9oEq/u+hHQrnZ/NLcsIeDNsw3/Ohv4MTG X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6f04a105-e1b3-4940-abd0-08db8dcce6cd X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2023 11:38:59.0029 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZUR3Xs7skPpt57Mf5PsyWECsZ0b8/B+Am2deYY4brhpXLjoq+h9MyCcZexjB/X7Vu6dpBI0fu1M4R7HKrZxHcA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4203 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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: INBOX X-GMAIL-THRID: 1772485211333259551 X-GMAIL-MSGID: 1772485211333259551 |
Series |
[01/30] usb: ehci-npcm7xx: fix typo in npcm7xx_ehci_hcd_drv_probe()
|
|
Commit Message
李扬韬
July 26, 2023, 11:38 a.m. UTC
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: Yangtao Li <frank.li@vivo.com>
---
drivers/usb/host/ehci-fsl.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c index 81d60a695510..0ed715af54ae 100644 --- a/drivers/usb/host/ehci-fsl.c +++ b/drivers/usb/host/ehci-fsl.c @@ -87,8 +87,7 @@ static int fsl_ehci_drv_probe(struct platform_device *pdev) goto err1; } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hcd->regs = devm_ioremap_resource(&pdev->dev, res); + hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(hcd->regs)) { retval = PTR_ERR(hcd->regs); goto err2;