From patchwork Wed Jul 26 11:37:58 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: 126372 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp411763vqo; Wed, 26 Jul 2023 06:42:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlFwYQ5kWK92MS8q/tDTrtBzcoy/BySxm6N3wYq5VQfI0ouvvx5Mp0beGFEpBXtPWiA2EXzN X-Received: by 2002:a17:902:ecd1:b0:1b9:e091:8037 with SMTP id a17-20020a170902ecd100b001b9e0918037mr2318761plh.30.1690378974866; Wed, 26 Jul 2023 06:42:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690378974; cv=pass; d=google.com; s=arc-20160816; b=iTI7g2ZT+O3FQI30N9KdN/pqhKud8BlWRU5b4P7ltHNyhcyevbZmrKxucqEG2iKWHF l036ue56Ni3VVJFVCn6S+IPeoUnGMdGlKNY0Xx/rdvdIV3REM5WVkyxhlbHCzoVSAylG UEA1fH3ZM3KjCMbohbXtGBoAAh3v7iJe+8f9NCMATErvr+0HgnoHln29btzHHBwbptvs qtVboVj6ezH8sIGUf44qJtTO5tJUgD08kgyxsATgQqEH3ZeqdWlwx7wi+YLPkYLaxUQ0 Myb4Q5497a1XiE290ATFQkt/sXcg72KuuwW9XYVRohK3n3NE+dmXpYE0noktrmiQXIy7 jVYg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k4-20020a170902c40400b001bbac6722e6si5813758plk.371.2023.07.26.06.42.41; Wed, 26 Jul 2023 06:42:54 -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 S234187AbjGZLjV (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> 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: whTpLL1Ws2p8B8DHlEjbqfWrp5uIybYerjPlVfDkn7IlbX4ccu1qqJss6XRpGqEOLWw6QfwIatE5+7Ipjrfn9xOQiN2bnF1IX2vffcn07xqemI00vWsy8rjs8uhHPapfmVKldaoEkSGVZAHvbsCfRSVz5MkfafM8k3RLpRkQQo4GmQDYj2O+JOL/0nyNpV11B5eh4ATk/WCgyyNGe6e+nn2w93vQGHyGwEsD6LCfK6kAu+LMXtD6ELINrOapCh8GkssGkx0nc28cZaUr4QPH8D0D5zsfuqfJHJrxhGefD2ziMFpvMyCuc3MPhlB6G73qmiUzANsFzjdC+XH9Gw84fgZT2api2LQpVvt2D+eiyH4Zpc6JIe38uhMT6o0BjhQ2Quy/GJgfT5jFuFr/0gaDYWSKvFGXaiLNcmo0XfBjxU+584OrUl48mshgYwKngSnn1s2/+9RLPcycOdBaReIvk3xREasFqb/LAOV/YvDd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hXk0OARbbxDYldr7I705ZTlwGZFv6qL2Gw 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772490824128019653 X-GMAIL-MSGID: 1772490824128019653 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;