Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp974221rwb; Wed, 26 Jul 2023 05:59:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlG9TUbGHzqXjmCLgVDI2vARhos+F4ls4aZeahXHw1joAw2rxajfb3WE4BdmkAj0blxbxsKY X-Received: by 2002:a17:906:53c2:b0:99b:6e54:bd6e with SMTP id p2-20020a17090653c200b0099b6e54bd6emr1355278ejo.56.1690376355708; Wed, 26 Jul 2023 05:59:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690376355; cv=pass; d=google.com; s=arc-20160816; b=qVCUEVcUs31MNFvIbC/2U81//m/+/xrSmhYqgi3RXf/WakVWLkeogdKjvtjKHfBB65 jjREs3oFdqUh83eaw/OasnEr/8zQ18KOC6YhTM3rFVLp9ysjBN3yt1/CZVYi/3qbzhDZ 34UIaAb0a48cidGyJ2IBBQ0k+2WCUCFgwnExOQWB6u6QFnoK4d7WGzhIsaM7N5ZbOGws shrp8NIIRZIooEz8CXtfoJ8jcGVeGN30UbvsfEzuaaNyteTqPNOQNQyEOiR4iOt+PKFQ d063wcbdofLJOT/fm2N4lDv/j2zeSr7uBiQP3m0FYU/O6wgv3K+5impfTzbYc62/f1gY 4s2w== 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=DVa7zYxpE38QeURQRntCjBcZuekxkPucqcYfA3rgk5s=; fh=bMC5P8+r1uhJNT7JdPC950luRXJM8ZVXe+jJ3ryOPds=; b=LdVpRfY8MKnazIIMHqOxW412BcWN7Hmhr0Fl4OaNg8lWdHkUqGwE4UkE1y99SRztDu elPwplYUho27EFkLz2RvDwFKqjNWoIbEVj4MIrd4RbBfZLO6TxJKaB8NMlTgfe8hFoVL O1acxyfextMhQ3gAramWDk3Ixt94u/Yc7CRViAeTEranUBEyc6lbXmLGnrRwtkYbDtgR 3A8xO+nuClJyCLLnWwPyaFHwPot5GqIvoQQM1oNITfPt5W67z4DKMZ1t914A15few8Vo NJhTNSEOaejr+XGXQ1jPgWddSDChVtCAhw9zOwSuO6SUGgIsQfpYS1xEfz06+7VHsSo+ 6jyg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=O1afH+1+; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs9-20020a170906f18900b0099b92d054e3si4833577ejb.930.2023.07.26.05.58.50; Wed, 26 Jul 2023 05:59:15 -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=O1afH+1+; 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 S234093AbjGZLjV (ORCPT + 99 others); Wed, 26 Jul 2023 07:39:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234168AbjGZLi7 (ORCPT ); Wed, 26 Jul 2023 07:38:59 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2106.outbound.protection.outlook.com [40.107.255.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E130170D; Wed, 26 Jul 2023 04:38:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j9Df0rHf+6cNgvn2vuvhFuABv71Ffwqwwt1BZsqFS+0zw3cJiQDQhsj2ia9gNOmhoDbaoxdwVgkB5I14t0Qltw+EIE2wBA+cGrg7xnWfsFbEVthwUHN7RAphHrSoZqGjd9R+TGKDyZtVL7ZjfKmL2GJip72sWLzwmBto1PtLinz+8gpbs1nxPVW7ZtAFzIjueH7NYrVysbEpSqiNYn2zXaqjyEoJ42WH+Uz1J6uRJy1SmGuQk9G3jHa3790T7/Y4u5rr2KOPak2GSWGSRZlpyC3e8oCRO1csYZVkQK59eA1pdZ8+fn7kvOrNEJQ7WIB04p/q71J/CUd1Kj/oXGIt5g== 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=DVa7zYxpE38QeURQRntCjBcZuekxkPucqcYfA3rgk5s=; b=k+qmei/4QT+m1VHWc3o4ap0rRo010fOYXLv2S4NisdTP5aB94rnNlDcqJgmzxUgL2Q1IAdWRsS8FiofcYg+MpWBntKQhgTsBtEN6yrHQMxBIWST7B/dnJjB9zCBfQNm+lOmMXQdQgVr2va7lUzP1hiuhlP14C2I5RAOhIs4mOtIMnWgLTbqbVDHfe/EMbzRTxXNC8yAUjphv/CWRfMknE9m68Fag1/vHISFZzkQqUvPiyEXWrvEzj2XBN6QCMK09pNbPucFRqHpnjW8eKswXSYE8FSh6/okjSDBDASfeWPruOP8Kg25TNJxVZ6qaE9w2eC/GhifklPMe0D9l0qGwUw== 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=DVa7zYxpE38QeURQRntCjBcZuekxkPucqcYfA3rgk5s=; b=O1afH+1+X1Jgnv6MBjrncTi/O2ccjYkNqbrDQ/rQ/dhwrcLNKiLJuL6KCTPaeDcM553eUab+3ooJZBceELEbPUg2YwPRwEotdu47c6UkrVnZQQNgt5S7damcBRDJJ+wk+efXNMK3H8LIQexOhnSWTcTMWLXoSRW8U/yAkEI5Iw2GoIgw5pAf1ZHFznkvRBK+VxFw/c+GhYWPJhwV6OFIiisAJTaUcnI/eG69Ss33S3KZud6kJP94UjOICtn0UEuMQYxKLV6hW6pMmZiU6xPygd6ES6UeyCseUtzzbJRDdBTMMsgQ9ZPtpMX0cy+qY/E013nfTjOMisMyfsfC9mJCZQ== 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:45 +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:45 +0000 From: Yangtao Li To: Alan Stern , Greg Kroah-Hartman Cc: Yangtao Li , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 12/30] usb: ehci-spear: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:37:58 +0800 Message-Id: <20230726113816.888-12-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: 5c1dd259-b378-4488-26bb-08db8dccde84 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NUBQg7KG4hlPMjRP8wk6R7C083A761bXAVLipCP9Lh4EkU2EbdrUCS2PdDC8C5MnrSsiFmyAjU8uSAjYYXYlpHEbWsPsp0XXnqZduqlA8+EUZ2ji2NZN6ORbxNLkERsajC6x0hQY1TEjnXfRfKrmz/X3c+3hdaZG1ccpVCXYDWzLRgyd4kTHzPBwDie5N1ne1VWfO83bRgV2k7dFnq1yAKnUWm6GzrPVYrMwt3do5xl3/VDcIXkVRk/MXxwyekKYlOF00Pi6T8GX8ilMK2WCbLGkyWHCetIKFT/QatLGRYD+8q6PGnHVuaEQsHeaqGiJKb0Wo4LQSxArYeH7FSuHuWY5hrtEwoxX/Stdgyg14aUeEUVMx1HUV4ej7B5PPguswmTBdotgP9DMoixgZLmvifk20uSk4/AHFoZ1Tz1WtfCqulAaE5EXzhCWYFbJ0qf/4NAi2nmtGSeY/XSYRCnJGkiDdU7A4D2Ji71CIunWMF3GPZVVEJe8oxrrxryOGW8j+t0u317MQ6CtbBSRztk5D2JfkfDCvxXXeyh9jxGJ8DT9NeCqVDY2C2yPLV5/5ygmpKR2s7RvEaJu2n3mJslbcSmpPnv3PZMEQiAxKNxxtX059o9Gfb9Hrcl8SvknzS6Y 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: =?us-ascii?Q?whTpLL1Ws2p8B8DHlEjbqfWrp5uIybYerjPlVfDkn7IlbX4ccu1qqJss6XRp?= =?us-ascii?Q?GqEOLWw6QfwIatE5+7Ipjrfn9xOQiN2bnF1IX2vffcn07xqemI00vWsy8rjs?= =?us-ascii?Q?8uhHPapfmVKldaoEkSGVZAHvbsCfRSVz5MkfafM8k3RLpRkQQo4GmQDYj2O+?= =?us-ascii?Q?JOL/0nyNpV11B5eh4ATk/WCgyyNGe6e+nn2w93vQGHyGwEsD6LCfK6kAu+LM?= =?us-ascii?Q?XtD6ELINrOapCh8GkssGkx0nc28cZaUr4QPH8D0D5zsfuqfJHJrxhGefD2zi?= =?us-ascii?Q?MFpvMyCuc3MPhlB6G73qmiUzANsFzjdC+XH9Gw84fgZT2api2LQpVvt2D+ei?= =?us-ascii?Q?yH4Zpc6JIe38uhMT6o0BjhQ2Quy/GJgfT5jFuFr/0gaDYWSKvFGXaiLNcmo0?= =?us-ascii?Q?XfBjxU+584OrUl48mshgYwKngSnn1s2/+9RLPcycOdBaReIvk3xREasFqb/L?= =?us-ascii?Q?AOV/Y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ODteg2VPhwh9?= =?us-ascii?Q?bcBYJ9jVIBRzo06JT3/WTxizKr/0f0EDPT13C5e/pz2h0wMjss0Lq751apGw?= =?us-ascii?Q?cSDWbrWXiPR2tl2dNtbKAt2wz5mc5UX/iiwN/IDWG24cnOeWJkD7sTffmLk1?= =?us-ascii?Q?kfyuWqkkjTv6Aom8j+NDRHEYV7VnuUmDMK7GCpmPIFmHc7PRBnbvdrDaOoCH?= =?us-ascii?Q?VaZ4KPhXk0OARbbxDYldr7I705ZTlwGZFv6qL2Gw?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c1dd259-b378-4488-26bb-08db8dccde84 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:45.1188 (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: TCik9HhbKx1nq+DZR37omuTPiarvoaTFLlNIt75DpvMAj3N9JBerTCWpV6J+mGkM+gsL7r7CdZso9Uo05XFkNg== 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 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/ehci-spear.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-spear.c b/drivers/usb/host/ehci-spear.c index 1407703649be..d0e94e4c9fe2 100644 --- a/drivers/usb/host/ehci-spear.c +++ b/drivers/usb/host/ehci-spear.c @@ -91,8 +91,7 @@ static int spear_ehci_hcd_drv_probe(struct platform_device *pdev) goto fail; } - 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 err_put_hcd; -- 2.39.0