Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp967703rwb; Wed, 26 Jul 2023 05:52:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlEL0cSc5Q6/2ZZRqUUfa2c7sf0V7doyZ3tvsZH1YiZhdRb+u3IOvdDjxAIwF1cVd/Hlh3Pf X-Received: by 2002:a05:6402:5144:b0:522:1686:20d5 with SMTP id n4-20020a056402514400b00522168620d5mr1367405edd.40.1690375957824; Wed, 26 Jul 2023 05:52:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690375957; cv=pass; d=google.com; s=arc-20160816; b=ZEGbft5JJnyKN6IWz1GXwpciD4pJiRSOB9LFiurORPHVrfvIbVMbip1vj5m++6Imld HECIFetBdt5XaxrPUT6TvrEhbPsejj1C4ESKMidXCPTZKGtSIJisapfiOHDcFD0txDhg JbofARrPAGFnm0OyG7XyzGNc7tKMhhiF77M1BHdl4mc1N5zh/NULv6VyJI3w7xMjP8RC xZ8AZdP4TyJ4hQWx3XT/S44FsBWrKw3jfetLYNasZIHZ7chxf5AFziL2oOYNk5BV395w Pm26xdeQSQ7+UNDrqy3hafeUkbRjAo9ylWR5poZcHMt4qOJc47KYvXpGT6EsqttEMEwd snyg== 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=GSdfkUbBTBOs/S/Z3/ISwWckYgrW78BZo24eG+DeiMA=; fh=++c3CZSJQp5iLaO4rG+4om3SLiHzZNbADjkp/0zpWO4=; b=o/sdhlknx47Uko33j/YL6PWHRa28Rk2z2724AfNSW19dKdGlaAZxgtOWl8KtFJ4k7a vhhnT1iQrW+Un6gsobBnYYQAKeoQmEk02hM+mQxzP6W1tluA8dAAEVUu+51/BUHc43xM VIV81FuvQRirn5lvDH5mYMDGY9rJfDcnNN/RF4y/OlNNNKRGqlXs88FUn0GvVKXo9VOd 4cqxuqVJzunHAlwMhwy8ZShQWm4h2xfc1OlYW8020Lgpu77E8ytVofyT9fqDyfuPWgNq LqAq6KhGo44q7q5Yj8mrU0ilfnAJ4ph12zeaTvr2/W2XhxrZRxXWNYOB541qEh7kiYh7 lAUQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=HbeHodDc; 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 u7-20020aa7d987000000b0051df3a080besi9757307eds.72.2023.07.26.05.52.12; Wed, 26 Jul 2023 05:52:37 -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=HbeHodDc; 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 S231722AbjGZLmf (ORCPT + 99 others); Wed, 26 Jul 2023 07:42:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234386AbjGZLmS (ORCPT ); Wed, 26 Jul 2023 07:42:18 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2070b.outbound.protection.outlook.com [IPv6:2a01:111:f403:704b::70b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07BEE2D5E; Wed, 26 Jul 2023 04:41:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h+nJLtQDVke/ZuGL/bvAC3oWwz0oURWzW92yP9bOLL6kDYXLhne6mkRpFkwcibA6XZySscsJqZTVZm2v9XaloU8HCxg8HSTc2OGIY8f1/OydjGXE0MD2tUFfThEZ5WraNNJcNLEqJuhjQFIqfSH/agWXtKjqj7+W+SxX97mj2IOZ6UO2xE9EaZdUOlkJDVfUxJyHyKiXuHznaEwRjzW7S2tkYu+Rpw03kig6JwKaUS4SH9CfPRAAF316dcnr4W2+BwCjYN4uGmIi5kex2try1lwJvgK2WshUuCym9RZcx0Dp86nx3nN4eSI6WWIloevyP8Fwf6ko3R4fPIg87PaCQQ== 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=GSdfkUbBTBOs/S/Z3/ISwWckYgrW78BZo24eG+DeiMA=; b=I4jzExIpRJR1k/uebKUZh8GpRExqm8r7bC8J8N6J1Cb9UUf+bUwEZKV9EP9ki72wZMJYcq1cc6OxsSStZUy8HVPU+tQUiAds9urDc4pBv4nTabbuJpzbYYHXtLE0x3OQ7IOtgbv4VDtn3hHfbBWUhAjPzuk5CK5BCI2Sdk4/TUIE6ZAhKCrWHW9JxHER1GwXFlRoIJ8PHS0krHHeCGBcAyKA2pSLPI1T5j7Ou4ifgwDkhBAQurpphveycUQGGmoLi/sy8mb6+NgGrXHakUVjW67Z87WefoeItQGTfNsVYFlLnCpJY07iCe5rG4XpGa/eDRULFMnqGMn+E7zvTGA0Jw== 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=GSdfkUbBTBOs/S/Z3/ISwWckYgrW78BZo24eG+DeiMA=; b=HbeHodDccDsZojb87IN8MRhXDU5msGtVLX7Pd3joYzX+iJc6AMYiThRyl8/Jewz5nNA8GmjrHD83bIylW2Gs7EUGZwSQDquvh0fewbLEflC7SiS4Eht0qvTPBnWuOjURIuPQnQAx/QGSoU8/eIj1bxQyqRwYB8dQ+w7iFcbZ5LbC/QetasMWB9uQ5xmea+uJqTiTqp7UWM8yr4xWPNfBfuHjypDTif3Kh7N5WzR1/serqCmOFDT4uID8fZSBqqGliqzgQA9CLkwO3GuByjtkaDZ5LsiBYrdmDiNhqF02ZuCsk2qnAhJJ5V6fD1Ug20fprqFP7HRDsc2EnSJE1T4Cuw== 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:11 +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:11 +0000 From: Yangtao Li To: Alan Stern , Greg Kroah-Hartman , Krzysztof Kozlowski , Alim Akhtar Cc: Yangtao Li , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 29/30] usb: ehci-exynos: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:38:15 +0800 Message-Id: <20230726113816.888-29-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: 982df809-adb2-4fba-e33d-08db8dccee3b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DTAfsTBOgefkkZzEmYcjFjIBysAbBO+0qo6RN8NkPlK1vZzt0M97AZiDi61Df5qqaw0cyE+GXf6nKmpBJjRU2fXopBdHHo0uljA2UPcp05/cr/iSFL2/Lg8gBg7WdUIt/tWMK0fjkKVU1Y/AyaUPwUWoN1pMGbnF+mf5GnykAtFUvrnbYVDeL98UNT12uAgV5umifp4+tJh04b0DBdDVKyZCnYaYL63Ppo1MFKb5A9tg0y87WYMpIHfWxY/g+r0Kc+/Q4VbVi2+1TXkyHl/ymzV9kkfky0u8yNfDAPHVbgN+0G/YL1Mpozs4yK3/gBwQOcxZPlpXtnWb/IU2WkMPbQ/XUAAgYq5K3WYlaTjFdjwP4WN/0LGacD//g+vhTx0lwM+GakDsSvFfqr2s0lM5qlljOG0A85ABeZAsPQGZ6fF391ZmN0FwquR8pg9O4KZVmFVVbznWGv4kJfwMQR6jSUA3ybWamkSyNqo5LG60jReYogb+TqfLd9moIqSNpEBkiRtLKqLc7pRyjyFvN0lXGxRf0RNUunJyaFI7uZdXleItJtSIoWkrrj3nErD7cfzPEXUom6dp2f/qj+8fXxp++QKRt5Y0ckVOiRDqPXDve/rzhZCWGk49SadA6OGWsZE1 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)(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?qRNqctJCoSQe5b+VUWtOF14tZrem5Q8TOQKnHZHMdmJ9cWiMlTElpKoDt/3P?= =?us-ascii?Q?09iZLesmO78WkeAndb4dkARcZerYyKrDLRmuOvjag0Udo+QJn0JKAIMlfwQ3?= =?us-ascii?Q?16IqiLT++aOh7DxRfqcBSGLpSp8S9LLI6IoqN4N2qAgf58sO+2Dc17k4W4CO?= =?us-ascii?Q?Z1BrPrYwz4RuSu05B1YM7Zw/DH9WfXxkGCtZL/pd5e4G4fhMcky7HTGFWUBM?= =?us-ascii?Q?XpO9Jn2B/w8qbs6nzSsje/xD6JC0yolMnwJ4cXN7vhrjJdTeAMSvvQM2uKeM?= =?us-ascii?Q?YqJE2SO4isigXWwmCKaMFgUPeSh7NkvaMwBhI61lRps0jVneMWJnkHLwBCQy?= =?us-ascii?Q?owlRbY7aEfH0/sXCrVOEGDyu2C71p5UOxIZjAfcHEKza/VMEI260Sywdzm4W?= =?us-ascii?Q?piQ4CE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ZD4VgaJ?= =?us-ascii?Q?tKX8B2M7f+6UYWXZWlUQrFL23PSwXOnne+sjunggsN2c6oYOeCm0IbcPhhwz?= =?us-ascii?Q?FAObNuZqGzzjLfXj+OrO5MRrnkblAOoMOF4aos+f1ihOrXShwgxJQgT2m4lM?= =?us-ascii?Q?3JXTW/6Cyo/2wqRFR+6axXiU1XxlwMnSe1KQHeVV7vns9GtBZjpI2YGWTuHx?= =?us-ascii?Q?ZzVaZT+dcyOb1Xe3pLia9h8fgBGvYUVbb7291gvOguky8SBCKMHdln3H180k?= =?us-ascii?Q?gDW6g80GkhOED3qyTVpdlijUvSZl8DdrDGr6/qF9?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 982df809-adb2-4fba-e33d-08db8dccee3b 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:11.4785 (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: zAfZwBZ5ERNSg2RdIYErsnTbCHpKixdQZgcfFKoRgr3gpYj2bDHX0FbWBnMAgNt283b7o6FWLz1BEK1a6jOGKQ== 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: 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-exynos.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c index 20f8c0ec6810..f644b131cc0b 100644 --- a/drivers/usb/host/ehci-exynos.c +++ b/drivers/usb/host/ehci-exynos.c @@ -173,8 +173,7 @@ static int exynos_ehci_probe(struct platform_device *pdev) if (err) goto fail_clk; - 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)) { err = PTR_ERR(hcd->regs); goto fail_io; -- 2.39.0