Message ID | 20230726113816.888-13-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 t5csp354332vqo; Wed, 26 Jul 2023 05:09:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlE550AMXdolwE2w3BdSvwP/z5eDxLLA8ungF4oKStOKwgC8SxfHbEq6AAwpHQjwnI0tr+td X-Received: by 2002:a17:902:8210:b0:1bb:a4e4:54b6 with SMTP id x16-20020a170902821000b001bba4e454b6mr1710631pln.62.1690373360881; Wed, 26 Jul 2023 05:09:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690373360; cv=pass; d=google.com; s=arc-20160816; b=l3f/KRQ3NJFqeogKj3MczEwwvEvna046Gm47kleFL5y/9/Zexg0JVwCGnq0NyvPqLb Lz1xmd51XyOW0IG9JFA2IKtDZhpTs93+rkT7bFmbL98YTorwliAHCz/BM7bqD2lGme5Q qlFtCXRkSOaxLbw/2KMYwoFBHsOIcjWgyI7M853AXReCT/ECb/Zyhsp7+we5mEEau1pM +N68sNoczvzJ01FRdWt7b1bZFQGMHWRH7pzpt9Tp0TK6UOh2rdsWgcbuOYQZJ/vIBWcp 2ch38yC4CIvx64zWvEws8lRpBvhDG2kn72vCNl1DpAmt39C2b98fqqL+y8K/Bq3ssJoO C2sQ== 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=brOfnpXWG+BlQNr/drLFUTt6IkQrATlZ9MTL6rDmuOc=; fh=G0vXrG17h2/vlfZCASfGqxOXgmNNHShLvauJVeXF/Ew=; b=zy2FMf0W6PyXfiWiMBlQidq6Mw/SzIhlkaK7fHo+luPyX2Z2zcFGC6tIK4/813HGCq 79Bfo8cSejT7rsyu4ZM+/bso1xYggsj4hYw8CLHt/avVaNQpfEZ84BVhbf2Dd2nycm3j qlsPVKztrWlQFwBAhtH4FyGMjqehe8ITDhAR4pjvJMsQyFWcbxoPfpOUwzK6cZe1TpXU 0aoc/tkqH4/LXgICx7OYbckN8UwfiQmjWZnP0YXqKQeg65tDmM/SJ+GvTXqPdSaUPLOI hTpTeS0x8RlgFCUOB1FCwUEdz9ZfD/4Pb+ikOUks0Yc9eEj1h68SMQRbphwiEnjw6EPn zKQg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=n6+bbK0j; 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 x9-20020a170902a38900b001bb821e394esi8504250pla.319.2023.07.26.05.09.06; Wed, 26 Jul 2023 05:09:20 -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=n6+bbK0j; 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 S234238AbjGZLj4 (ORCPT <rfc822;kloczko.tomasz@gmail.com> + 99 others); Wed, 26 Jul 2023 07:39:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234231AbjGZLj0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 26 Jul 2023 07:39:26 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on20712.outbound.protection.outlook.com [IPv6:2a01:111:f400:feae::712]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1A592707; Wed, 26 Jul 2023 04:38:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Kw9jlIIEgq7ApxYT3+ZvyN4yi1V7ypOBVlr8oNpgHDJN4I2whATUwac0X39VXsxEvTRiSKTfr5l9kEpLnYfnIrLxXWpCujlLNiX5zcJW4UluA7h8GHH2MFc4sGHKB9mcJTHJpob3KrAMLeXrlzoocjtGJ5IgrgjxqG+HFuluY6CSYhT01VN7u1YKL77p5RYmVGhkjfJK4eGlZGd3gNFNz2iYNFlPzd/GEnR6b20YxlZPDEXACdk+JJBS7+FJx3ikB5V1TYbF/fhZVEgxXVUMff8ylDs5+vSoEI+O4mLTwVEdgsI9ClEakDG8hvipjgKxIuTg3G8x5Odu0lVfVRfF1w== 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=brOfnpXWG+BlQNr/drLFUTt6IkQrATlZ9MTL6rDmuOc=; b=G9B1GOp3LtQbi3vLW5Qd3f2093rezKmG5F+1UVUAqoV1WFrnIHikCoPbdAhlZ4Igri5IEAloGib0uI6gqtecUeNjFq147pPKnNTU7stfBp/BbZjVahnOZbFWtZFT7rRuJSewqP6ktC42eg2V4pNXlG4mNJd2ctP64/TDutWStzflXNBxkkeB7clq6/BF5e3vod4czMnE+1uuveVOJ3inHskrseM5MKtlDZHORAGbcOj0vunVABooOOvGrLOUV4cx3PjVjFQb6eUf1NIiqa2nzzwRqoVMKSOcRhRIT5VrtUDszNwg1lS5XDJmVsK0WlobbKaH0mQyobtjIJDZFVJazw== 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=brOfnpXWG+BlQNr/drLFUTt6IkQrATlZ9MTL6rDmuOc=; b=n6+bbK0jl60F8et8cj6JI8wHQeyYrpjdOlgmHD1yN2VVe3Wqe3C1ZykS71/peeslyZS1JDiujmP8Bw9/gK4SI9kRyml5Hfxi91nEfOPEemQqCK9weh6iNVSMF2Ll+wzartMMrNgtb7WvpIa3R2tfmeSusdJ706zjWC2QMiqQfrbAly7OJL0Ro73wqWPYRSPO5Ht8+kouEI7+3iG0d+J+4JRVKN2FDPdCwFl3i1yf6ItBM7QCeMCENAkEoEaIsx11O+CaruffzrYqGvvtKdKgapVmMucb+xsmqu6j4YkodiS5VbBnENNzwX3eAjoLRtdmB4I7exBT2sYObLolJzypLQ== 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:46 +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:46 +0000 From: Yangtao Li <frank.li@vivo.com> To: 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 13/30] usb: isp1362-hcd: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:37:59 +0800 Message-Id: <20230726113816.888-13-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: 58207283-984b-4fa9-9fbe-08db8dccdf47 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6ZcxJRQ924ajLgYa57exx6NkwMXZEdWcqhGgkEVpyaA5zcTWwR5Q8NdVkepkUp7bykWUuj8w7wMHT4Y3dYwfTpQ3nq/UDSfeQMtLPvCXFlPJzvUy2/c9dC/hFiz/Y1FsWazXV09YH9HABCPOmzSnlFzxUvCrMJ+KAFMMQ+sr07hfIm9aJh/YRS2k2K2w4JLvBrI0SriJExteEQKx0nrom/ZIBQhfLE7SzYgNZx1lsR4rKucVFCtFrk0wFb6/dRD0nKEqFmX0CM3ePIVrZ6KOkdhaZaVhmBZLRrY2cky7D+di4uJwSco8z83k4VJBNIRD4gJCATdWMSCLCVZKN3kdKpADg8GgqMt33OofaRH/cwWkwGULQ3FSrE4PDHJy17J3lGVlRDf/8McIVFUAbQ3MNcE3bAyCinTIXa46MtulhP/xbpxkxGpqSu97zbsIFIeJsdeR0rRdV2OwjdtMGYZDQByp2sLFCgem2HStUUJxH3lMQphlfBNbngVKFjTDWNC28pvwEsV4PGrWBs9mcjEVqArcOwP4FxgyjtKU419sVvkHPqNdlAo2bWfhga3E6NT/IqnMG+eqwveGmF642SnPte27bGCdDkZsKP7kqdMINwUgefcto1Y7gi3D5DR3REr8 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)(6916009)(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: 0DpIIcZXxA4XkBKieronDrhGlcC3/0pAcqb2rmicJyeRyt0QVXYhYbx8m6f4uRd8V5TI0O4n3+KS4vg0g5Y5YM8Mo1flcaoIcU3kKN7Xv68XM5wDnu5HjHqFuXNKRLHOvGAZbxPe/ZisHmzBC9GCzomT2pjsZIm/9gLtgObixw2LnEu6jkZyN338qkuc5bWyfTdH7KjlcmRGyfvDKCXckm5gOsC03aVDvir2goKddrbvORUCE/n7hRTml4jBXV7GEjfLKpP1Y659M5ziis+G6fX9N203q8Eblyp1xjTYqzJoyo9r/EnlpxYUqwIvKkG4mQfa9/sDWcLC5wNn3SyQ2fo3xd6c9lr1j4NGr7SjVjZIR/5HtNx69GP3Dx2umAnpFRyrnSYQjtdtoJ2Fqp8STKtIdNe1mhWWBH4YA3hoZ1AsMX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rTPAodUKNtQwXMPYdNy9+KA3I9iEnv1s/ruvhSrsf/j/ydUjCWTaVXTUGO/VM3guooOxEo5JCiH63XPLIZyLlgmBXljgvPnKUcY X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 58207283-984b-4fa9-9fbe-08db8dccdf47 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:46.3836 (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: bafn5DWQqduLAkDW+dgmj+FyPkoN9Nk9BUnvzWqIDFV1WZ1Kge6c9OPyC9BbjhRHThnzClOAJKJyxJwFcVMr6A== 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,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: 1772484937288963074 X-GMAIL-MSGID: 1772484937288963074 |
Series |
[01/30] usb: ehci-npcm7xx: fix typo in npcm7xx_ehci_hcd_drv_probe()
|
|
Commit Message
李扬韬
July 26, 2023, 11:37 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/isp1362-hcd.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/usb/host/isp1362-hcd.c b/drivers/usb/host/isp1362-hcd.c index 606f0a64f3b7..a52c3d858f3e 100644 --- a/drivers/usb/host/isp1362-hcd.c +++ b/drivers/usb/host/isp1362-hcd.c @@ -2651,8 +2651,7 @@ static int isp1362_probe(struct platform_device *pdev) if (IS_ERR(addr_reg)) return PTR_ERR(addr_reg); - data = platform_get_resource(pdev, IORESOURCE_MEM, 0); - data_reg = devm_ioremap_resource(&pdev->dev, data); + data_reg = devm_platform_get_and_ioremap_resource(pdev, 0, &data); if (IS_ERR(data_reg)) return PTR_ERR(data_reg);