From patchwork Wed Jul 26 11:38:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13327895 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 067E8C001E0 for ; Wed, 26 Jul 2023 11:41:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234231AbjGZLlK (ORCPT ); Wed, 26 Jul 2023 07:41:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234132AbjGZLkz (ORCPT ); Wed, 26 Jul 2023 07:40: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 607E330D8; Wed, 26 Jul 2023 04:40:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KKNymhwuqu0bhN4cE813Zzpi7mp0UKGXTY4uzxoHtoPZKGdF8hXE1MS6ve6mx0VnLW6AJTWpFxeV+hyJAu1Y6+3NQaQZdTaRiX/MA8xVpYCu8NJWC9/PZ7WF2DRUbROTVmhtxhqJOFWvXRPTqjQLSeeyxhFLQBK1CZNWrqTxK7PNSd+/rk5lGOt//HYQ7ZF0kRI7lc9s6FG7TatPU3jn94PYtkzfBZwbRbzU4ezaTx2x9ktNwN5DnpX2NrEXjUe29qPGo8a80uXzJz+BPsPQ3VN9dBo+/uTA4M0icnfheGgaE84QzLC+u9EWwSF+JkyhHvK6N70G95fBCJdWxmB4yQ== 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=+fDPDzzC8SZ2ADXiURdNmfzV87FuT/nfV9b9dllITpM=; b=oEBcAm84okWh8ih035UHTWwkisQobNYbuyaA2fLgPy5ucu9XAWCARKhXphCv6qhgsFav6liQdhIAUIFXkxiPGGLLEhYo2twyw6u35lOPCCmkcBmR6A0DSwgSWclnIBP3jFRBNjVyGvh8AoFRQ77+g/8A45Hh9jmGxELeAgpfnHYbfYnM3A2eeB0EpalwxbZBa84RuN0l/8/T99N/WGpGv1eYDK5SSCbwPWJ5HSTzjsIYIcJUL7vL2zzejAV6R9kQVmhN5AzAT++xd6S9OpPQsFDzfL0Ri0PoENuMczWEa22YBacePdgL/nJ+2iNiuyu/2uD8GgyX2nCLx8f5z3ZBng== 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=+fDPDzzC8SZ2ADXiURdNmfzV87FuT/nfV9b9dllITpM=; b=Tjyw535Qmd8y1rASI1xeVuqMU5PQIuEk+1ScmDyQMEgl5zI87u8uOTdWUQEy+B6b2dReFJhrmcUQU8f2qg3jAd8P5SBjiQ/eSmPnsLivXO4Ld/nJC5UfW6JDam8eF+dWk7881+iEn0PUPkTmZqyaCaFOefXbjJ4amPdjE1x9qbUKCsFac+RNmgXWlMS+IiKS1/gdJ4n1IFlgU/e90jHOFI6zJK/Y8H+eYKaE/0UDJxx59TIXmFZ7vWxyc5JCQwajAEk99nKIDq9G5C+wZoS0l0StlqiDazrOHd/Q0/2BoU+TIcSYKs3tzVR5BawdOxa5lNiir7zklfKZLU1GawXfGA== 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:00 +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:00 +0000 From: Yangtao Li To: Greg Kroah-Hartman Cc: Yangtao Li , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 22/30] usb: oxu210hp-hcd: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:38:08 +0800 Message-Id: <20230726113816.888-22-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: 16855644-1e97-461b-5eaa-08db8dcce78c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hzXGaoxuFUzBcssTpEz/eC7IZln8ofTHIYpFd8N0V1wUk6j4i4XDQCCEWdWIwI3NOBNvQx7/l+w6VAjNgvjO1rCPb/8mE0pYqiXRnfO5d/xi+N5IwtpXILgovY94DIzjYTblnW5t70oJHFC5bTGnWGuARoszqRBRABbKoD1e3i1PBD+Mjd4fZGxjJTnpVthj0zQh7pJ0NwkB2bjJzqLiHPdzaO8/1vj1O3W+9BZca6QFjSAS+B8UhniPHLDDhc/hmCgH2Oj59Zp7Z5P//LtRyX2CUuJVVgjRnqh4mqxcbymrDkagHFQQ3uJHzloQDOpwHuXwQgHCqWJfl1Z7SxWUJzH04MCgS55PT7M9p9rHAJTzD2dcJH6pCakC9P3i4O1endLXoj6Dm4iSEXvpzeyDf9rTDbdgt7cOsz89ZnrFPQhSfpPa/y3iyhFKro3FitWEaNibzDkBLN5lSPnBH/SewfSxUiPqJvIlSgvVTG6CIayZWRr2OUtYyXULTDWK0c25mx4vX/fI/mF7z8D+j6g9kcTVgqVONuoB+l/prMg+V7kS88f4V+iEZv8GiOSdwVoupoxB4vz+YkHXYAQiAlFWGcVZkdmPuVJ5BSycRT6+Di4WwQQmI46It7h2LmPW1fmo 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)(6916009)(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: tNOr+6q+Ew+HjllzsVHT/BGDyRiTDmb6MGyDqfIDzLsc4hI26S6uekyk9wZt6vU5nooMrvzwPhokfXEFD+1Zf/GmvHuzOVdI4y185Xk1N+rA+89zRXrAGCtQzbcQiZF8voAgxauz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1/c1v4TJF6nR3BpKqjLy5JWQji+1xju6/oEw+xTBmom+l3jzFCMc4L2nG3zWKuUCk830mNaA/Rlp1uCLWbSzRikJECQjV53sFOnhSaB8dlZuvfCp5RhZhu6STEbgyUegp4j525UVKG4yI480z6yg7ozqXjH8FFUoUvPwEeeMnA6PmBCFBGjK6s8cF1X20cs2473SEKCfOD01xKntL7s8bo6N307s+uy2InmtRAZtTQHPBxVbF/2VOQ4fBAPSLZWxqa32sbon5Qy3TVL7ZFvf3K1pismzqVOn5GQ85fHcvS+NZXSVe+pVvhV4kHSQkhxexltDoTQQo1n4HmzQf92AGmLR4QpmSSGcDi9DOFS/KSWMgFwwUGSlFN3WzT4RnV09hnTkRh X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 16855644-1e97-461b-5eaa-08db8dcce78c 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:00.2758 (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: s25/aav65xEgAFIsI7tznh9s+QFsqq2enGuM4eiXDEy8EikBE7l3MO01XjMb5lY6/eplKizDQedBSop2it+Fiw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4203 Precedence: bulk List-ID: X-Mailing-List: linux-usb@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/oxu210hp-hcd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/oxu210hp-hcd.c b/drivers/usb/host/oxu210hp-hcd.c index 50c1ccabb0f5..d467472f9d3c 100644 --- a/drivers/usb/host/oxu210hp-hcd.c +++ b/drivers/usb/host/oxu210hp-hcd.c @@ -4230,8 +4230,7 @@ static int oxu_drv_probe(struct platform_device *pdev) return irq; dev_dbg(&pdev->dev, "IRQ resource %d\n", irq); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); + base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(base)) { ret = PTR_ERR(base); goto error;