Message ID | 20230726113816.888-27-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 t5csp360376vqo; Wed, 26 Jul 2023 05:19:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlGn2w5hzrmCQryE8D80+uxk9WEl/Kr5EOPTfeDYtIXxTcERMNBP57rzHlglim63hgP/QSj0 X-Received: by 2002:a17:907:1c1b:b0:992:103c:43fa with SMTP id nc27-20020a1709071c1b00b00992103c43famr5388530ejc.30.1690373957747; Wed, 26 Jul 2023 05:19:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690373957; cv=pass; d=google.com; s=arc-20160816; b=YfInXoK6wXIacfNT4NLn0Fedr5TCIxz9gm36qfTZhzU1SagjuyDjrqB2Hl9wQnEXai 2dJc9z3PudossjVRKFd+Ym4YFCZxAiFIsbFCe/pV7z90VhWH/2eYJ2PIZTDMxiQojL6q PTXAZoBxwBBb2RDiRnzZFTV2H1NuMJM6nOfXkCxm9GH+Vtk/XjgUwMKSMLTMMj2ahYKE YH745L/RCuwYnTXwiqFMJpUDfb5ld/IUKgkAb9sg4eE8Sv7X/76rRqKseob7WnSQhiaS PpsRCeiPzhL2y8A4nLj1YpIlHEY2tdJzROLBgT8IhT6XRqBojPOoMCArRmwOFWm+dtIv UT+w== 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=J0uFL5XUt8ZImrKit8Hy+PaneKQiyRiLkdanJSVwsQU=; fh=L5Ghj9sgy/E/t6oRMdYLuHiVkJCoXmiM63WMqMbJS5g=; b=I42ZF4qDrVrrvHl2wlrJ8GV4AaFlxYbd2RbDfW800u/uiZrZp+8PKoZ19A3SKeRAzc yS/o7Ut5UV2zOsWgc17/pK/n4THwxC2HaS5KhnvQYvT/GRJxjKNknf69i8b+yMZEAKrp /7aoS+9vrsSwoy8SoBm5/WvCiFyfvOgM152I2a9k+TFMk0ejHHbHSu3ZHR0KVsizCNeI 6DIBB1Hue6/CImtcLbN+jh2PkYe+sDqqg4h40kgY8s4wd9yb7yP90QUN0qqgNyE0iudo VT8enxNda1nCrhOSPmtPj8sfnRnqK84zvYuesDdN/ZSX0RnBopW8lP2J+v1n4bGUhEMU Bt4w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=cPf1eL2F; 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 l21-20020a056402125500b00521a873b32csi9563743edw.327.2023.07.26.05.18.52; Wed, 26 Jul 2023 05:19:17 -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=cPf1eL2F; 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 S234355AbjGZLmM (ORCPT <rfc822;kloczko.tomasz@gmail.com> + 99 others); Wed, 26 Jul 2023 07:42:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234254AbjGZLlz (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 26 Jul 2023 07:41:55 -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 9D90F26B8; Wed, 26 Jul 2023 04:41:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nLdpz1Wz36KR1epl+rGGc5l04shDmh49FGdwYeDC92CNmEVD5jIXrysopbhLTj3hvm2MLuup5NFhismTVUflADAN1ku7KYpJuzOeelvbOTbi8666ijLgtkUyuld/M/gbFKx68BqeNZe/fiEBtq4yTtzsgq1AhIslQFuD2K77nZlYAbnR+TISHgO9YQvFclz3bXObTF1nTEZkOYVsdSe69aXb5D0wWrzNrnON1aDX+uip2pWW4q2O8XqxzD/ANVNngMxxBlnykv7Bk/2BerkeIWDYmEynOQC7aueqmYw73DZNgSZJYBWSx/IX0G1oYhCk2j+jJkTvozT574YVBRK3IQ== 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=J0uFL5XUt8ZImrKit8Hy+PaneKQiyRiLkdanJSVwsQU=; b=QX82j3ixJbNEKEFUCg2hTQK+PX2NF8PZWjhxl0+mYLT2uMM5NfeAzZZp3g7cy+ekRt9s+gwovKrG3JJCcHuhL44ZDen7s7JxamBJ9JBPddQn3ktKAoAyZCziL6LdsGuH3KDOHNZVm3keDAVznwdahOk4VOV2N+omIftg45sKu1lA1LECkA3tK8QI2B6LoVWQnCR+PEk042w9umLRZu2qNTUtMTPeLSKRtrsFPm7F6YtOwNn1A3/rvbeD2CXrg8y9+Xlgm09etH9LrK2QPKhohiG83v6pIurBXLGMkyySN/NZP29LfmYYTK6NEpnSkvxx3GZMt9bxm38kJPCnSqOBxg== 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=J0uFL5XUt8ZImrKit8Hy+PaneKQiyRiLkdanJSVwsQU=; b=cPf1eL2FUbopWfV2DE+6oQyTiYL9Jk6jYmkfL8Q+0fC2Yqlw1uKGthXHAdL0VYMabNrAOzoS72yduoUFRp7S2tLv0VjvdjFwjm7EO7Foeq5mtKfKnn9eWWIPH/CxvarcakfkMgqTQe/Ev+3tGtIGZOiLznDUUh6HT80/WZ1/9A9C3tyYlJjhHy5Emse7LLJWyKXo2Th03E2sljiRd6yohIgYVkGYM/oqJnV+4DSieTrfBODDFzIHK8cxUv+UE2Ysixd53/OFazIJrGyQ5NbGoP3/4JB6/2OJdU73ANcUP+XmnV0BrXF5xJ23NxQ6NRP47+NvgCEO8kdRnYHiqP1l4w== 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:39:08 +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:39:07 +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-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 27/30] usb: uhci-platform: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:38:13 +0800 Message-Id: <20230726113816.888-27-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: cba60e26-4326-4dcf-c803-08db8dccec1e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6z9I9Yvza1x+mOfIBCqE7lPDkHRVi8Q54kLOsbFRpVop7l5cpzHduQE7UkPWz66mpYhpNzUfOEJ0S6XiXFTSyMNu2WaJwxXUkhIKy4M+XCiDbfd3Xk1A2S8DkwBRKYzj9DmxrtyCmVxl4/e/Gts1I19bQQlxpZvq3wDuEnftAUyA4MrUesxdzQSR1sYInJaoXshgOz8kfcAVnn55albJdcIuxwbzdmSMRQrVerI0kv7uqnPTHNtfJ6lWPPiOrmIZ4BnB6CNd2NB6yduBpfjYOF2j2mf3Ax0f9CKTAem6oKBPpMW8o88gbFbyKSL0hIFsmgMYNO6H/aeGa8izCkuFSY4d7zoMw5L/bjZVUfzGhSbq6+12bZ801gLpw59FxRNkRZocUa2/yPEZ+0PLazeyRMhcF15CxFZ85Mz4JYwDLO8rEa4T51/gjXsBfxxsybjUUE4qGhnNeHnyUCyAUHruoF0Q+oo2/k4fw7hld/PmxkysNzKylOk0YCN6t+9DiaZoowDjqMK/nAKZUqjSyMcpfH1ic3J08sI/B/O3tzG7MU78upTthxett6ul34Gtorr83n+K9a36V10q3r5czgIdi5NstzKVOKUFgbGSHgKlIuMIRhOUwYFwIE2McGZi1N5U 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: mQMJJjJedODhHKUG1jQpB23sa3mh20SGYo9hTB30SseneCDHmtID1RUl4DpbxhPXhzNFAwy1AaEXJDe+ZI6wkMGe5Oyxi+P1LEBnmZiaMKMGtnBsSx9bTZkmCrfztrdAPWm13d6o9flYjUJs7nSiW0DD90+kdA+u2TPM/TkgEc3da3x1TVaNV/4sw6mHuPfdciinD+TpXy3CfGKgCiqEqvhJeGlw3YdZ+yXPUhOc/RlGFmctF8twxqwT6ymxIfWmuij5SsZphAlHJw1xbNPSRAsIrJQ0m/hZugATRt33a3cTmMXtm0NID8BnotosZiOo3Mqplou+aDh0GvKQqqC5UIHnSqPjwigeP0+radGdE5k/tMs+VMVfQzvvRNidzlDC+rXWvw9qkVBFLEXA9NyagqMEG4RmH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8QPwv77/LI5OSuB7CyXMypeHfFLWYyoTrJofRB277BVZleHz6mWXoa4zQc5bdr1PzzQfTSjbrAryD65pFVWcwYtxjdcbZPeIE0aPAT9C2fUpbK X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: cba60e26-4326-4dcf-c803-08db8dccec1e 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:39:07.9438 (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: Y7XSUccD5h4LHnq4dYEsY+jI9SNw2zsr0xUg44Ai9JRuUhLUkAOuMCI/5mI6S56xUQ+mOJ4HorUCuI/1kDqJIQ== 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: 1772485563174184677 X-GMAIL-MSGID: 1772485563174184677 |
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/uhci-platform.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/usb/host/uhci-platform.c b/drivers/usb/host/uhci-platform.c index 71ca532fc086..3dec5dd3a0d5 100644 --- a/drivers/usb/host/uhci-platform.c +++ b/drivers/usb/host/uhci-platform.c @@ -91,8 +91,7 @@ static int uhci_hcd_platform_probe(struct platform_device *pdev) uhci = hcd_to_uhci(hcd); - 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)) { ret = PTR_ERR(hcd->regs); goto err_rmr;