Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp942724rwb; Wed, 26 Jul 2023 05:30:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlGLVQ3jTbti+UL4ZSQnZsjnJnJ+jTRKntePJFzG0f/9yWa11k+bOCEdH/ml9qgY6oa922ln X-Received: by 2002:a05:6402:524f:b0:51d:cf7b:c9f0 with SMTP id t15-20020a056402524f00b0051dcf7bc9f0mr5728689edd.12.1690374634337; Wed, 26 Jul 2023 05:30:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690374634; cv=pass; d=google.com; s=arc-20160816; b=UBP76cvhPJeC9mJ0eweijxu2ue7Kl908ASSxMOkQnqUDzq//ycnhTcCsTxxeAVMzVo zOdQSOgFZGGVbfmw8rpsdQuqZqruHgWgryAysHN9a/Y4dbPLfNBZHwNSTm13mxoBCOPb dSVWcls0E47rakqL8VgHzK8tdnljCaKNI1os/BHUaI5WGAHow4FmPLgL4wL1ezX1XqkP +F0mpugTSriV+nj0xnvbSHsSFXkr1i5d7r4iHenb8l6qidY6IUMi/lzWB7vHVxwAZb+W z2dlLoSOKqVgds5mUqTYGrjHkZth+DuUfibOA6nFoALuB41d6C2Va07214lhza/J42ee mJ9Q== 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=v8Fj0MzjfsMbtub1RbMTfz8JPuqXLQhflYxBP5U5nG4=; fh=YRBrmZOOcEdgz1GSuzK7iH/Q5IfQZn0bDPIBirsJE5A=; b=ulG/ZCbWMYwbSwgf5pq5HSYVyWgczQbVjRSERbaRj/+fTbKlmfiSwFmTGNXrVEY4Vu HUPyW9yz0zXxX8po+zkLtXsv+HJnK+k8Bn5I2ftX800RLBYAZAuGqBEbc1QsU+WmNfBZ ztIrl/92JrNmDSx2h5o+AoGZoLALOt6Dnr/q/K3gy7mJJwNKhyTNE77oonVJtVj19uwG +gVq9DGdYolzfOsq30+lKwFCLPVSfDK0T7rWVg3s2zikfxQSJUFinchQ8RIu5b1v4j5K ICfGQsycfp5JV1YFloPuMcY4k0O41y4Rc13XfkqEjRHW/+G+aCt40Q3rDd3qBR9jEp1s f7Gg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=J6mbOaaI; 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 f12-20020aa7d84c000000b0051dd50a5a08si9238307eds.229.2023.07.26.05.30.08; Wed, 26 Jul 2023 05:30:34 -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=J6mbOaaI; 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 S234084AbjGZLio (ORCPT + 99 others); Wed, 26 Jul 2023 07:38:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234095AbjGZLij (ORCPT ); Wed, 26 Jul 2023 07:38:39 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2126.outbound.protection.outlook.com [40.107.215.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 247221FF2; Wed, 26 Jul 2023 04:38:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dnYOuK8ua0t+b/eEK8yRf4ErJrB4n1aDpZpwNRToQGYIn4JvNbGSwrfrIhKfMHA3pJVFpOvL/nmiPNNtAaJCQn0dhQcbzdrVv6dqpu3R/1t9OxBBEEPWioKXCDSpbGoxB2+GhiIvqiOniRatc/cbnZfN3HUwM8L3ijI78Ra/REVWPOSZj2ekpYmZVP4deecqvTHxy2qw+tQO8qeDdvCoVPoDWEFZel3rYrh7IkDFxF5b13WTrBgbuUFyJA/omJaQzFKfcRTjGj6KoEFVJ95Xg6Kf/UiZFbfoPtzYbvcSASEvOGCdjUzGCK9Lwrg99WNLlB94ibf8tMaqRMWN9r7Ufg== 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=v8Fj0MzjfsMbtub1RbMTfz8JPuqXLQhflYxBP5U5nG4=; b=SVHLGzNALHOjfxjQ+fTdqmblOHsg/emUObmXm2OCpFBIH9HdlaG5Joue1p6skUHl4BvOjWTKOy8IxgvzgUJCbf1nMgiL/004MNvKsriCpOlvtG8j74ZdesJN1WwGMAH3LwFQykOVNMpez3tBJW97dG6MqIib3o2N/Li2QiGcOSlze2PUDSPvKgDgV2g0L6Wzt0vDywryB3F2Sof9J8Eu/pXTjsmNoDGE31x6yIsO3w1HZuNCd8QZej8adFYNAWiR3AHrnoglQfE/u9bVPuAAa0cQfr/dt94R95yv3WBFxFPr1LUmANdqJQGNfEZKsMVdm/QecWzxUNxZVJER0bZKkg== 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=v8Fj0MzjfsMbtub1RbMTfz8JPuqXLQhflYxBP5U5nG4=; b=J6mbOaaIQXyb1uFLB649W8s/RpRb2aeCTQzyvTlBdrnkSj8JzfwAGDRBlDe8cIaODaSSscPuLbNgw15c0mfb70bpfPHUjrtmUl2ghuUT0FZp7QeZrXuG1qmlZvMWkD2Nyz28hB5QcAvlByySCY9gcwyHyf1ILwt9s4Yrqik51D38uu+PIQLMJl3f45Ra9O6aJh7QqGqBw8cX0t3ROOXdFI8pHnZr6T5yw18N7DyxHrbP6ULH2Xp959yoeqVpzbnVCrCVdVHlscZ6pG8hjyy65jbtDOpNrgiy9PnFqxcyz2Z5TrlUaPwwqfq0Bg2PZwXjfIr6i1y6NnpgRbsNfu53MQ== 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 KL1PR06MB6210.apcprd06.prod.outlook.com (2603:1096:820:d9::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:29 +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:29 +0000 From: Yangtao Li To: Peter Chen , Greg Kroah-Hartman Cc: Yangtao Li , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/30] usb: chipidea/core: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:37:48 +0800 Message-Id: <20230726113816.888-2-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_|KL1PR06MB6210:EE_ X-MS-Office365-Filtering-Correlation-Id: 67fcbc28-697c-4477-cb38-08db8dccd488 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7d4qzhgVWM4afZqVMlK14LpJewRFNi2BbmMO2tnupP86daDK1k2TE2kV+sysygagJsjlHU9pMsjtyHHc5KeWUrUupGgif6EI3X6Qx0UPMIuFtE0qjRYt2j/ZsAyy9VNUpc/CwCbmzzFy/BQ2MDycM8Xr18DvnrkIuhf1R02j5GPA03R/Tg1OGaimM1JBDOhYoRF9V7kR8R33WctPjA5liR++R6bb9VlsNpEuc8YmzAftStV1zZw1IDAehCBrcL5+OxY97D6ojyube3+rtmTmPaaQyNlzCAAvPKWBof2XQwPKQHqIO1gb6wDRuFKrE/h3Gr4gQwz3XGRbQ68S2SVrW2np9TSQUvrGWkc25S++oMixff/Y3DBF3PKF3zqnvYBUaW2hmWNFYTiNczK3QH/mTso+GH7WZZF2gs9+Se8XEERi6z+52A0+kSYJ1F4yPHW9it8fIpJobpNOQl3Obj33aP8+Ryq75LQWiBj9QT5Oz/aNosPfO5rfRHr7Ww8RNp/AxT2nmPmrAvaTH2Kd+5XQfFKbD/WQhEWsznzC7IfrqB7FMCdxskojCgWlWVlrUx+rrw4uRDgPAAl8H95SIdt44U+qOWvEV09HvPZJ+oYTCbDUBR+wtxfF4vA2iM0QMqER 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)(396003)(346002)(366004)(376002)(136003)(39860400002)(451199021)(6506007)(8676002)(5660300002)(8936002)(41300700001)(316002)(4744005)(478600001)(52116002)(110136005)(2906002)(6666004)(6486002)(186003)(1076003)(6512007)(26005)(2616005)(66556008)(4326008)(66476007)(66946007)(38100700002)(83380400001)(38350700002)(36756003)(86362001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?m5GD/E6Skw6IaxjEg0owlnjDte+fQTkKe79Tj3rOrJORGxKRuV1Vk8NFjAcN?= =?us-ascii?Q?g/4AjVPCQQFx5WNAu+zKzRJegJChrPB0W8YCTN/m41YmIwQSrCNGRR6lv8Cc?= =?us-ascii?Q?RfZHPy0AiJ75rogAp5Mb6JpjeHy+RpkzM/eqcdS5pS3wBtwmDzoWc15edQuI?= =?us-ascii?Q?Ir1psjosBmTdq5fyIDssoxYAn0zj+xAUmCO6Uwa2Hp5SDlw5KLA6KYKwNAS+?= =?us-ascii?Q?Ujj6rgaQY9hfjYRHrFUyMKc3B4HFuarue6K4+eY6ghYJjyivht3fL3hS9Ago?= =?us-ascii?Q?4oCbvEmJxShJXPQZY/FNC50tYmSeYNAuME+QORjV8e6mNW/OONXhVQdSlgF+?= =?us-ascii?Q?yiFSfhLuwmGQIS7jWKneVZX6ZNvf45F/g0Dtr25hzu4F1SGl/3oqtZZ5D1f0?= =?us-ascii?Q?LGnfxK2b9K/jAjBqchwLSkJ+TZ50VrctDbzcLZD8l4lO7vy+pu9NG/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UCsBJfHO5SJ563Po1KdARug9Wk82yLu/VG7RFRxLkxQeY?= =?us-ascii?Q?9Fg978e07dYc8c+LA6JtvMNK26ZwCFT20IDZmZ6BnNSOomacMtRzN1B3ukUG?= =?us-ascii?Q?595v/tlAUoxURL8QnPXP6KTjHeJwzKP2hvQkfYOqGLfKuJCdiQc9Qx7MgIPr?= =?us-ascii?Q?txjolVRogR+NjFN060EN3qn1Zblb5YzDka3n0MUzAiwhN8Pt9T0kct4TvpLK?= =?us-ascii?Q?v7l1uo0N6i/DrzI6RouX+yA1SpFmtfvopxBHj+M0?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 67fcbc28-697c-4477-cb38-08db8dccd488 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:28.3932 (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: e+7VCSSdYP366w7ZR51Bk5fg4afhksQwI3vBbVsApR8WtGvKYWgUk0WHX1lVhWZDvbRgygZhLvZE3eJ9kG/e7Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB6210 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/chipidea/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 51994d655b82..6e1196b53253 100644 --- a/drivers/usb/chipidea/core.c +++ b/drivers/usb/chipidea/core.c @@ -1028,8 +1028,7 @@ static int ci_hdrc_probe(struct platform_device *pdev) return -ENODEV; } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(dev, res); + base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(base)) return PTR_ERR(base); -- 2.39.0