From patchwork Wed Jul 26 11:38:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 126278 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp340584vqo; Wed, 26 Jul 2023 04:44:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlFCq1IJDwcX9eSwyihO1HtmYlU754gxSMMgUBqYaqVArZwToFsdYO2Mw4G0bYw+ny7AbA/E X-Received: by 2002:a17:906:3f09:b0:99b:c0da:5028 with SMTP id c9-20020a1709063f0900b0099bc0da5028mr1491264ejj.62.1690371845049; Wed, 26 Jul 2023 04:44:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690371845; cv=pass; d=google.com; s=arc-20160816; b=029uNJk7gD+47cCJy/7/5w/tWumktmPfatf2oxzMSpMIH4lWJBGJmdFUxdXzlH/J3R 6qYQcnhvxbEG71d9MzSnNGVBzuDILNYURRtB6OxnId682t11THiDCZ//edAm/B2nJg1y Fzfhtuh8Vmyf2c+19ZILdwrUxRMOOe9HjKOFRFziBdzTP2LSbtzHYqCqZTHFW0qXTeFN vsAs48Ox9zsJLBrahW58iwPOz27jpzwip6Oow3LhKRkde8IEZj2ociex4t7wg1h0+BHA scgS1Yzk3NXO2ZrGf8nndTjl+RWKDg5NHINAKSq94JXOYvSQzh6wF+psefi06/ogL4V9 vBnQ== 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=gEqLmhRkcdEd8su+d1qa6gyjoGA3Q9/s31q63uuIvl4=; fh=phYkVgbARr350kUcBkEx/XKJx5ijTJQ41rcCQu49Y78=; b=SdW5PSkDq0++NBDSwsf6EsSn075wMDdyEtULIUpHOiWiQSUTuVHPUhk8XAirzSTne6 YVBOPnGpXUnWD3Cv28CvXOXXLZBFnDddMwUKVgtDVXJwiOIoo+dJs490VtOIeZXuiv5z UCMYtO30pOisoNeYyqfWHYhTUZjaoSXBUzORMUJDuZFTvjQW/THAt9Srb/AogvYdZzFH fEX0WIrlMUdGsE3suXV+5aCKL8j89UCV8p3k8yWOJh/qF68agcxdcyI7fmTxMqzeXYOo A/K9plsgIUcn4ejTrTpiHJyiK+SIdGSYOGvZI+t1PQjjL7ofFVay84+sRsazZOdFYWET Od/A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="Ek/CflMJ"; 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 g2-20020a1709064e4200b0099bd094903bsi12082ejw.774.2023.07.26.04.43.40; Wed, 26 Jul 2023 04:44:05 -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="Ek/CflMJ"; 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 S234279AbjGZLkp (ORCPT + 99 others); Wed, 26 Jul 2023 07:40:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234102AbjGZLkW (ORCPT ); Wed, 26 Jul 2023 07:40:22 -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 074DD3A80; Wed, 26 Jul 2023 04:39:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ENAkyAQJqVBMuo5xFjgbqoSpmrqHoG1l1AG5Wi11zCBbcMpcJva6as4nmGLhN9J8gJDv0/qMv2Dzfxx7adnoVvopCqhUyXKiLRJOf4B3KJJkwUWEQPojraqt3OsEyCCWMbcflTgnRpNbReRF2Hq1AhH++ky1/oKb+WwG+uiAx2WWC3cTYSoq9clkhK7xZaWFlXqfeujcq8p5NReL20/G2DXABizm4/xnIeVyhE5xfptt8S7RLu5pjDVXG1j7fVDbDr9cHKFD3FLReR+J4RPCmsyKEZhKlkhtZ+ZPljFcpz/XhbwV6p3o9gVWFK6jYTwKsDXhPiNloVlAGiTUeK/I+A== 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=gEqLmhRkcdEd8su+d1qa6gyjoGA3Q9/s31q63uuIvl4=; b=AZ360VqkLQAZMIFGIU4zWIe7zgw7hnmOuK4kclKVZGz5GulBEam5Or9+mDoGczZ6gzD99tHZ6OZzqPUTV+h/5lObRcxUvnz4R1LTpgkRnWCB/1jusFjDaN8WlOvDZkfkMVhjwthv/Rd7/8nYYrwJyx5KwCsJQaVtyQMhO0eB2m9CtFNoCtFzFO7+EAvGolI5PI7vjghI446xu3KlcETQ55B4+3zkikNcsuwOQXS2IJDSMyV49cPmEvUDN4vvNkB69AdH+zleFAj/zus41LBTXWO1/7qL65R4h6p6JdAegZ23UqGfkZJYbRoHQjK+xc0asy+LJbQaULLaREbfHWxu6g== 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=gEqLmhRkcdEd8su+d1qa6gyjoGA3Q9/s31q63uuIvl4=; b=Ek/CflMJdMRjXmcZM8wl+gfHQstk+Mc4975ActrSbuCIaxKFJATEWdtUkVaee36P+GrdviROoBDlUet8tYfuFqaVMoypNM2pq/aCCjQ6bn2sQxzhzwoBcMXEyIumumvElx2IYGc0YFMY2Lf40XNwuO7OZ8H5YOzvFiY7MRu7Yxz1T4r9Z6RybZxhut+VZJpA7LCRP3pUbPyI83XWTPqchWLFvybBzcwSCh/sklM6Z4WMRadGRMZEZS9Yrnd6EM+Dgpxdn8lu7kREJWK80n/Sm/JdXH0DWZ0Ps1eK9ceFSoNro5J9gwccEJ4kgQMrkUrukh9tehkuc+HR4NKOsI3E2Q== 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:56 +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:56 +0000 From: Yangtao Li To: Vladimir Zapolskiy , Alan Stern , Greg Kroah-Hartman Cc: Yangtao Li , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 19/30] usb: ohci-nxp: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:38:05 +0800 Message-Id: <20230726113816.888-19-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> 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: 46d13fee-49cc-496a-fbb7-08db8dcce522 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4rmRPyfu96d3Fnsd0rLyYjVacSQayIIKxzTAETJF/y22CcnB2AOlsKRvk/M/nZlzOpV9cq4od/UbT9Etyrz4CSmCs88JhoNJvQ3dtmRJeMDVGztvCKq28Eez83cAKe92KYqlz3sdosf0M5jkTFztw0iYkHCLoZN7FAy7Bc2wAL4UBdhqgZE3rcZi251+yinvi/wwjwSC0N9JS9wuos0NNkjW8crRfNluhkklY7lAN2I+TEP7cjLDEk3ZjGqelQEvvK2G0vtKiCGFztiIA1P0QupISGdHvLpgeSkPTqhc0keTQH+EuvLLFGG4GBs+w2lMdLF1W2zL3YrwclZoWs3qXZ0k4WzOF5hW3DIsxWHmr4Cgy/44yB5AeLlI28GxPqGmCrzjYczcJZcp7ghZwndeucw50wvozIrzU4PqKksCjxkQBWlzJMtTSzaGgzcEtbH0sqV+vpBbqrMGEc03r60UQOZE8Qs4Zw1laL8uNzVGJ8AYE9PftvFGC/OrYc+YfQdWzI/4HnsoagXoL3GF5+WaOcUHQD8TKx7GhFvMHbkPx+Lywb9PbE+yjnVuwys4bfE7Cwe64i6IsFmi9tx48GKpnk1sM3c/mqZ1AJQ07CYRT1ojOs9eI/HslhfCj3C68Nbt 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: Xcrk91cwWyGnEsos2m9YILslgHyo9s7cfbwn+7Gt3ENdXHaHt3Plu6xU24qac+uoK4yw6fm78RD2mDoyaP+EilTc2Gq/kLGpme8vL151LxiTx6CB2V9kRsm+FTt9Xa2JBlL3YYAheXtr8NDJl1pRQHEHMJklADurB7jKl38IBhzXp/WZ5AzIzIRGzBtEZlQmCi2F9iPZBbiICPOjJKZ8LZKBKsIILXW4u0DlSaaA2KeHAKWFL8UaTXMWa4FzbOAlvwJ1M5qm5dWDgJ35wv+AUc0dRsHkSvAL+jav3k/R6Dd+SkOIrBPqTuAfs6BMrvnCuooKCsKB8J3NY7gKPo1efBnOW9HZHxGDwqDWn/rVDPzepCsZzz+EJx0dGRnzPbUctfs5xa3yRIxKfYRZDsupvMXkaZ51LCMy9+1eKBXCKAnDCmskyJOSCBoxp5T3AaPL+v8Pxc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v+V76jnt6B2CO7vEbPXOuRKni6r3Uj3AKmSYpNAnyLTEzzYU9qJZmpFm6 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 46d13fee-49cc-496a-fbb7-08db8dcce522 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:56.2126 (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: CWNgcza4MtvIW2cSuVl3rm8Wpc5HYFLpib39QFq1ih4qSIqKaXmL0GvKwQ+EG/c035NbSfUQPBQd28WRzf+p1Q== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772483347410105828 X-GMAIL-MSGID: 1772483347410105828 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 --- drivers/usb/host/ohci-nxp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/ohci-nxp.c b/drivers/usb/host/ohci-nxp.c index c04b2af5c766..8264c454f6bd 100644 --- a/drivers/usb/host/ohci-nxp.c +++ b/drivers/usb/host/ohci-nxp.c @@ -202,8 +202,7 @@ static int ohci_hcd_nxp_probe(struct platform_device *pdev) goto fail_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 fail_resource;