From patchwork Wed Jul 26 11:38:04 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: 126306 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp363513vqo; Wed, 26 Jul 2023 05:24:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlF1d/DsNTV2V+I8F2QXBwMJy84eOydeFeElTQw8B08mFpu7cZwBsQUWw2fehVvPOUClZJ1k X-Received: by 2002:aa7:da14:0:b0:522:5834:d2de with SMTP id r20-20020aa7da14000000b005225834d2demr1346361eds.8.1690374296690; Wed, 26 Jul 2023 05:24:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690374296; cv=pass; d=google.com; s=arc-20160816; b=a7OtXehiGalK9fV5sIt0wKZb3Ie/j7FG4zByjG6L00ziXmRupMmK9L7d5aENRWq2D5 juaipvedA1jfxwnzLcfwgKb/60b+qxlzq0qKeHM05KTe0nfRKDarDTqEsvzDKg+eY+bR 02/wyamRpuQVr3Td9FUbNO+el7leEVFe6wteV+NOi0b1b1Hrd2D6Sl7DEC0EMIwN4TwV qaQiQ/x6xjcrqJtxnhuWLMtR+rs1a2iG4T0Kb5h1YUtnjZdl86WTqftdwkpm/NZFgCw+ fwqBuCTO5Mzh8FtEcW4Z1/IXYSvjMLg0ft0+8sZ1VA1EIn0LHYqIGNecQ9Hd+PvPIk/1 3FgA== 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=J4oauksdotFXSxZc5S0ZaxH/Wm29D13fTOskEePvOiA=; fh=asWmNyLUo2fdhT4xOFc3PNVSx2FBPPexgYKNjjoF1dQ=; b=v8nBRzQ/sppMB80fccAh1Pfn5+tyck8LoOYQMlYFan/Q5hmI0AzQkwWLHxSoX3Ea98 4hDiCxlS/QgRF/4fY5Aq0G8Up2MxXIchQaOIdocpYJE27ikEMwdixLtlX3/W7dV0DtmG J9a1XQwXxfofYoePz/oecCjUCIozl2/q1C8Zgd0wH1cWKbMbQhW0OR5Y43xig9tvbTTq KMjXkTaIta4cFjLiQ38KOM5XcsIAVzRucoL7FirroEcEJI4f2h0C3x5vEYktd9aN3S53 8J74Rdec8Ld9BOkSTYwP4aUltRRBXNHXNM9/45P0/+7ncl+X0Dx7a/naS58l5dS1+0Oc TNUA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Lq5KeOpt; 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 v5-20020aa7d645000000b00522450bada4si2604261edr.660.2023.07.26.05.24.32; Wed, 26 Jul 2023 05:24:56 -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=Lq5KeOpt; 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 S234199AbjGZLkS (ORCPT + 99 others); Wed, 26 Jul 2023 07:40:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234102AbjGZLjz (ORCPT ); Wed, 26 Jul 2023 07:39:55 -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 C6893269A; Wed, 26 Jul 2023 04:39:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UICNyaPCjg6bT81+KitPtFimR4i4lbQ7cZPqGbOKRysrPDJUW520L67U4yUr+9/J6HIxAkfgfdhP6nglzyR9Qia/hGPL1fHfwveLr3WkS0LQP8+Mf3kr7QMnsCA5s5rup0+VQ8IAI3+cLqLT/2WAnPpLCNiIFxqMD/714k2MpBxSFLjlxXu+khSQqdNqfyMIa6KDQOd/JQA333W69CNbil6cdB7ZHb3hUF48QCQ1GjgmbdOeoQZSyCHHW+Hkg6ORSKNGY3+MzT4J8GRyqLlfP2XPcnm2hjZGRPWMl36xXNBtr7k8GZDFE7EVwXe1Vh9v/bRWzA6oRjMJscgeccks+w== 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=J4oauksdotFXSxZc5S0ZaxH/Wm29D13fTOskEePvOiA=; b=GAR4rgP+RNAXeajNzdAz+Aj1vl8a7b1dlvqSLEA+XahTU+C3wzyBLYUNcoratrw9G0VSP2cBCjhWKjOyU3CWgwsqeG0c2wrTMu1TNymfkks81+8uOFWKIEAL07EkEkC2kgeetMdYF1PiUHbzYSFmAq2eIxTZTsAwRF9sFPlHidIgAPwEouIsJwfDCmY/tftsiGB4qPuOv35SCAL71C4KRfxu5j+QBJUgpZDWjjK3kVuDgB6NkbgRoNR4PvmKrcDa3Z+NLfFIKyr8XYEQAL/2eRdE3gMNPC0Cj98qvkf8hv3IAbZE8YMYFDUgxtfFnrk0RH4qcDFeeC6yFzRmqZuVxA== 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=J4oauksdotFXSxZc5S0ZaxH/Wm29D13fTOskEePvOiA=; b=Lq5KeOptWpTY/RRdCB3pW0ZLeB98FyWZdV4xoo/vKkWldHl9eDuQn+9sDyupSZPZ1NRbZhvt3gR9W7NROSXyutQT0i99Rzt67Euh3CCnMUkZCHhRT5M+MyCAqVAyMEd6Ne4gVfj2SbyIicMkj1I04CbwcW2kywoHT8/7GhF1LpfJGRH1CYmpUDO18Zu9xQMChQ//a1pYM7SHo15pG2TCKF3hJuS7KnDlagsbmyIWQMqOkjFk7qJZZUepi9vGOVxcvzHFySRHaVl14tJHnTUVvCfrCfIl80mUVcO+HMUwdRghkfDF2R3UDF+4I23VNesg2gXqSap2wtdJ57RaqwNM4A== 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:54 +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:54 +0000 From: Yangtao Li To: Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Alan Stern , Greg Kroah-Hartman Cc: Yangtao Li , openbmc@lists.ozlabs.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 18/30] usb: ehci-npcm7xx: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:38:04 +0800 Message-Id: <20230726113816.888-18-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: 76385692-75d3-4991-b120-08db8dcce428 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: O4j8SEaswPAW6dvm3pS4oDYX79xfmkKvPcFPsegPMokNzFJCdF9v8Lq5OKb5mS3Py2uSXpFO5jnlvd9kvmRKg1lWZZdn9psQlZPT8BmEKdNGZ68kqpfHXEwYJ2AikhtXEnTadjVkJZ8Hyj0HsplXTs06AJwCgQI9ZKnb7Mj4D08LohsvFK6hrYVkAsM5grYH/D0xYAFV0lkDK1vXY3BONg8+q3m4pOG/wb0dN/I9nQ99Zf+iOVzITbyBjvHaRdshA4XqveBw7Ykf+GpSgt6b3BzLYGtVAiOronu4pUa0iy49qio6eYdJogBFy+ZXG9cbLPDy9uXPp4h2/MCr9VAU3AD8ww3OepO9+rxX2AvbhnlDcShhpEaVgQFqYEAHz/lvBF6KEq4Pz50BXit6DEUC9X+6DuQGqfhe3KdmvTLpLJHNzWxKOSXLcfCnkktOX5LMRp/AipJVksjdVYJIA4Ji7DYzw2hF7BHflEARFcNXZ4kLdPt8JcZz+efBye31pfMtbdSfQlbwxCRWkzcBO1lHo0534TOc7rrqFoqglyJ0VbdrzS0GL15GyuAsJkWQ7a7vI6+sw/DE/LEozNgKfE7KprAZ2s+3DeRILEaFXz+zk8m0zGEs2cPiu9pabtN60Wpn 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)(7416002)(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: c1Fhl2a+ciwOpdhV/OyT/OQh9IpRX29xx6KrDP857kdMclanXmKOVUj/X+HE19RV3KgaFqbpSP6MJv8OJHg5P6S6w4sYVyPx/Eq3+BCBScgUZpcP6u7ABOqcnx2XnuArLeoBl9/J3IUYoBK+Ab1cgRPpyz/Rk2Reh/hk9puqcZ7a0N5DiBzXKLOflP0RaiOGeOzzY7nA9+giYB5TtF3n3zm0pkaziPzAIbl9JaN3HXz0+8DR1VQ9e7s5CX0f2rCX2O1ArM6WbJV/dEEppfW0hO1dMlRqDWKdKNpH81CCUH/4oHx4XezpehtISG/9G7z0ArSBNdh9XmCG10txsHhfxOimrCvoUIARbhoPVM7sui4Q81R6TkV96ZJsskI6ytM1c2t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l9SNBO6M6jWfQ96Qr0/JmovssABYcSYsNdOEIlZmJoRl+VAbVgdf0x/TIfIZb1JlC7UODOAkkJ5FStzuMxnItp+SSAHvAp05z6ht2TJEm6GeS7IM4syP9nuTuvE X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 76385692-75d3-4991-b120-08db8dcce428 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:54.5747 (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: HzOnfQM1FqOUJ0G6QUjoNET4ZmnLEkghizQ2mWfCUHoLIFgnN951Wuu8NjBLzk/kAqNjDbZGc968+L+DTzFa4Q== 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772485918880292537 X-GMAIL-MSGID: 1772485918880292537 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-npcm7xx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-npcm7xx.c b/drivers/usb/host/ehci-npcm7xx.c index 0b3b3bd689cf..3d3317a1a0b3 100644 --- a/drivers/usb/host/ehci-npcm7xx.c +++ b/drivers/usb/host/ehci-npcm7xx.c @@ -79,8 +79,7 @@ static int npcm7xx_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;