Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30370759rwd; Thu, 6 Jul 2023 05:07:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlEgYzs36RD+RbZtz0ZxCZyMfqzvg+iVEUSQF4o3bX4lVNETI08XV8HIBSck4ueIMZeVOoah X-Received: by 2002:a05:6a20:3d82:b0:127:76ab:a6ff with SMTP id s2-20020a056a203d8200b0012776aba6ffmr7602677pzi.22.1688645246560; Thu, 06 Jul 2023 05:07:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688645246; cv=pass; d=google.com; s=arc-20160816; b=R4saY3I8PVfNwREh56YcEiOCfOllhJOB6DJNcDDOcOWkQ2X45Dy57+xydmwQm06YTx ESMfpeDn7xDbrJp78VGn0O/rU4gWnniK4A7ldWms/NhWmottJINz/gY2hjbyuWfysVZT pY8OGwbttirUlZI/DTxBBWC14rQCPEAF2q1RwaVCi1qEKMC9JKZO6bVzlndIaQFRot4B 5zvvT1K8F4GQP2f0ETr74JGdb5W0Cu1bbPD5HKKEWv5TJEvKlaopgXHJ3R4yLlWt555e BTxAO2YAkP/AO1REZY8ymIkARpFnFi/eT8xEj/5mAsZQXkDhmH+Ln/7MJoeMu1lyZ2m1 qe1Q== 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=ThPm5jzEawEJeAbP+7o5YKLL9542oOzZ+0WLNtEnRNE=; fh=/dLJmsZ/no0BDuGWXlC3gwaSuTIyuj5MsXsoNdFvu8Y=; b=1I80ooiJSXJx9bZ+HGUV7Tr1qEvmW/3+rEh1bLQWo42PGSl4k+IFJaRAkG0FMPQvWI /Z8JtqyEfEwhC6iHNDVMEYEiaF8NX1YGcWKbOlCcsB5oyVRIoM6fzbf1M/ZEJ63UCV1I noyHElWHoht87nk13qgUOZWHWgUxkqTCgplXOSiORDWUXyclXEgduZHV4GMVXtJbJ+BA g/8hJMeiA+/crhH19O4l4o8oaK8dVFVWNh9py4YV9b5kyZPZfqRZsgKhcefk1TjCAd47 UBgF7QjrQOCh2qdH/65MSlkXv7W6CJzv7EjEGK+6OecC7/hohLZiVP4gFAgv9NlP+Er8 gUYQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=RpgDqAPJ; 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 a192-20020a6390c9000000b005347d6bd7eesi1381858pge.141.2023.07.06.05.07.13; Thu, 06 Jul 2023 05:07:26 -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=RpgDqAPJ; 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 S232498AbjGFLkR (ORCPT + 99 others); Thu, 6 Jul 2023 07:40:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232408AbjGFLkD (ORCPT ); Thu, 6 Jul 2023 07:40:03 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on20715.outbound.protection.outlook.com [IPv6:2a01:111:f403:704b::715]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEB6A1992; Thu, 6 Jul 2023 04:40:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dEMYPYz863/C0LSyaBXhqJKLNasXPCsz5afuJKu8+1iCXusSV7P+O0CM04JMGRrsbWYzXDXMSpxNWm3Wl/0HvIzeRSR6JI1L/MizTw6QPlfIstRYrRKbMTV4WFMeIUvwGG0lU7xV1YzeDzq8Umlz5ms/h9S/krhHxKlYjzQ8s5TBxpj0DrxwFUklkN9w0NBfvskHQk2WmWdc5bQQXj8Uv2T6CidsCgEiSmeCpBc03dFRQSkzKfExN2uIL6EBIBBf8cbM53Pn+sT2mu9U9XIl2+CKXyHN7i3vx5tw0MHxvke73zEvSPxSOjfVnpUGUVKRO0MPAsQoJ38FWvcrneQHYw== 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=ThPm5jzEawEJeAbP+7o5YKLL9542oOzZ+0WLNtEnRNE=; b=GMikXTNlxbT4HBxpaJGYCFIf19OGFPfynDKDTZBwoBMofmmNdk6KIAemzTTox/0qycVlFKvo1T3zKjbC4v8Pi0vyYgO14ygLHKOj+rPcb5fsDE5G6ihYZUq6s5T50ea8wMilzZp8ZkSKci3h1bj1lJFgptSyAg+kfUWKX2nWnIdMbdn++mec7NlJ6teICxZaG7gXiriXnC/9uM9YSPiQWhbbsgznI+g3FQJJ3JlCvK9gQp36WTz9df0GRpQeLilAwkuL69ionTvhqoaOOlKejJu5AzOlwscf9CGmvhytMVqs1LM1PNvo/FZOCm1W1WvyfRvSyaxwIb++b2jfjoSSoQ== 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=ThPm5jzEawEJeAbP+7o5YKLL9542oOzZ+0WLNtEnRNE=; b=RpgDqAPJ6LlkME81QV8FwqqJlfBuYy8KpMtpsJhLRn9YH4GMk1LWRYI3WwPtKwGKfjKcxDcK44uX+OnASdKWgMldJYVKEtwSwsSh83mqtXf7ekZIFxVF5JpRZnUCwTAQfOJQAXxdKukssw9Ff3qlRCLRE9hwbqfCs0+jbDppzr2CiFFxa6/yNoYBafDYtTJZZ6gj0jSb8/d3GAjLbsEUeNh6GI189qtOrS8VqxDbkAfHkEzjKddiNIZBFxy0jd/REkCLTOHFhLF9Qhf0NBXIVXMpBfIBXdox6XMJyYcso7yOPcLVNLE2IAtWwEQckgepAMA3PVDx3nkw3zcCAMvGWw== 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 SEYPR06MB5889.apcprd06.prod.outlook.com (2603:1096:101:d2::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Thu, 6 Jul 2023 11:39:56 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.016; Thu, 6 Jul 2023 11:39:56 +0000 From: Yangtao Li To: Tony Lindgren , Lee Jones Cc: Yangtao Li , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/7] mfd: omap-usb-host: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 19:39:37 +0800 Message-Id: <20230706113939.1178-5-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230706113939.1178-1-frank.li@vivo.com> References: <20230706113939.1178-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0013.apcprd02.prod.outlook.com (2603:1096:3:17::25) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB5889:EE_ X-MS-Office365-Filtering-Correlation-Id: 6452dac8-ea58-4309-2b3c-08db7e15b8d5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NjDyeR1NN3PJJ3NHVY5h1T3glGDbQVZKGGAzVGvIQsOSHRPblmkUWzP8CoZTza+qDKMxtLUj11QVSKuXyhx2jBrhoLyqIfQFnDt862IhogLhZJt2CX6ErflB6Z9zYeOK9BYoGrg+UC4SJXxGGPIeHj/m9JU9PKUHNzfixuWH8a6O30lHZ0dSwrp+x5ud254KaCzuI+4uJ0NWR2oj1mqdFmg6DQSkvhD9PWiTYs2C0wzCgtiLyuXh9CbkwbznfanihdgUxQlr0xX7Gwdpr9ITpEoL/FVKZqkuRo8cmfpJCC+e/ZJ5NVKttjNQnetgeuCdR9Jkf7IYpf5D8Qen7FWhGmgcC0y/ycp+Md2yoIZUxo+GgqQHYbnrPJFApr+TTHq4xjMS3mJMp+JzlCvJtFwDTxyxTeDia6gRJlkWOeUKyG1tDvk+4E/2dsdfQyJiOn8+I8U60537Dcan5o3iHXlovOyOC+hwaK3e5SPlF/pn9Zu5shjoRMLuTg7T7sOW85k+ai/vjale5mXonzxAV8V6vt0STzXe0kWSEQrnk276FcxjuofV9jmMWLiKxvRQfKctVP7+yLxFJPQPBCVBd3jTIfNj6r8dS6r1XzNGStRTOoVLzAXXAnE8aXwoFL6iVwJN 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)(136003)(346002)(376002)(396003)(366004)(39860400002)(451199021)(36756003)(86362001)(2616005)(4744005)(6512007)(6666004)(52116002)(478600001)(110136005)(2906002)(38100700002)(38350700002)(26005)(186003)(1076003)(6506007)(41300700001)(8676002)(5660300002)(6486002)(66556008)(66476007)(66946007)(8936002)(4326008)(83380400001)(316002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?EFjUeBH7GccWJr3UZQ5Ci71f2iDATNY/S6rnM2kQ51PMIvE3GRjdkNoufnL4?= =?us-ascii?Q?YHf878EiSze0gh/cHHwVt/jRg9yWyqUDTQUNgSyXDrxMoAX2V7i5mcJekEWr?= =?us-ascii?Q?bdfxIXUh0HYo7JD1UclB0EKsp7nwmyy080E+2LYekMJrGsutSdU0sGLAmbL1?= =?us-ascii?Q?fhf7LfoQNIyNebHsjiOkR0EE1Qln0r+7CCcsHlHLCDRqmn5/FgBXbsqVB/CF?= =?us-ascii?Q?9LznL65GpytSYI2cruXcKlWquNeQ9DPXOa3/S4I6RFqJMTAjMONF93Z/8Okr?= =?us-ascii?Q?etnHbLoWpQfUmHI3Xwg1W9vZJgCKP9/kxYiBkYV3ikRHRjvIAKgNI4UVzhTe?= =?us-ascii?Q?1NovGi9GJW5YzY0oJk68d11kNk1UqRqRotcXY37ICuQvzA5NwkL1xelsZv/z?= =?us-ascii?Q?ox8EN03/LTm7/C2cKs1rTltVFdAZTjVDWDpwGXsORdzhaJzLOY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4lBJ+sTDFQMlT4fxBByD1+LhghFrwuHEb2u2mQVhRZmluza5Zn7K1X?= =?us-ascii?Q?Zv7gmTyO7cH4LPxvXvmHN7GYSVFaL9JkZ/Ux6VMhVCUI3hr7Wb8DAcxudgYa?= =?us-ascii?Q?E6e1gTRYjPLooyyF21KBW2b4nkQE+lXhaBb0q+W1vpgroQKWfA9Ll3EQN8SX?= =?us-ascii?Q?/SQsEnCbaeBUF4B/2JPQItV41mu2bYw8tphs89yF6Jq5WqF81F8FFDmb8UHB?= =?us-ascii?Q?imNHLjUSpP/lQNfPm4R89L3Si3b6yWPmIdXJHWlW?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6452dac8-ea58-4309-2b3c-08db7e15b8d5 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 11:39:56.5422 (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: mCXDTjfpXF81v0WyQDWnOb+7S3c7FyvMqQT0xWCYmUDlqc8uG6WyMj7mxhiyOojG6pLjr2yCHwvJmxq8vIHnJw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB5889 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 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 Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/mfd/omap-usb-host.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c index 7f5775109593..78f1bb55dbc0 100644 --- a/drivers/mfd/omap-usb-host.c +++ b/drivers/mfd/omap-usb-host.c @@ -534,7 +534,6 @@ static int usbhs_omap_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct usbhs_omap_platform_data *pdata = dev_get_platdata(dev); struct usbhs_hcd_omap *omap; - struct resource *res; int ret = 0; int i; bool need_logic_fck; @@ -569,8 +568,7 @@ static int usbhs_omap_probe(struct platform_device *pdev) return -ENOMEM; } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - omap->uhh_base = devm_ioremap_resource(dev, res); + omap->uhh_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(omap->uhh_base)) return PTR_ERR(omap->uhh_base); -- 2.39.0