Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5186968rwb; Mon, 21 Nov 2022 18:17:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf5tYG7GygugA3AwGv6F0Ltu7hqb21IUd9KvtfWqiARWJ5yYV8UbgfacopjqHAQL8x/aYW87 X-Received: by 2002:a17:902:b692:b0:188:fc5f:84f2 with SMTP id c18-20020a170902b69200b00188fc5f84f2mr1881758pls.137.1669083477180; Mon, 21 Nov 2022 18:17:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669083477; cv=none; d=google.com; s=arc-20160816; b=n+XGZbxiOwsaLlHre50RW7FhxTGCL3asqze0DA+ZopRNLpgKqrGqlwEKbg01zAB9vl Y2AuI5+DTl5z1HHP83bZux0u+BdyttJB6JV04jpX7fe1QE7RBhxY6IZl80j4FXwNi7P0 7IqYHpkUr69EZk8Fv01/pk5axZNMR36hjerGa5/QjfnN/cCuMGnD1NKQHsPIlfoXjU5t 9cGWxaMIpPod0mWPCDOq6f9J9/rKEAsTulVpeBG/DNQuwIAm6tVLYYh6l6Rwyp8Yj94R 7Av+Gsr5FX1bVcsdHvidyMKtTTsHkJ3rm4pp4k5D8Q92hjvlqClGakClXxw6/+ZwxJvH qoeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:mime-version:message-id:date; bh=WzrKLGfItlXjNhwx6msgEB5KQybCd1B228aN4G8e7A0=; b=nhod6Hd2LB3KrlR1M3Cd/WcRJdew15rSaX8svUezeCyPgxNriqnJFB26XAfP1K6Q25 YrYe+9K+G3nJx/CHgMJjqLsL89GFXbsIunDaUpZJGF8t/EHxSt4A9g6AKLVx/TdfA0Iv kk7okzTR4ao1QLs7m+iEUohUAzwzYGUczvlptEVqRA5wvYYD2zrPEe/oP4pLmYNMAW/n HWOD9TUrCtNNYKYNQj5ncchAs8g/+yZXcoDtqBiJ/5BgQeVHLaTyIABy5MvD8xRdrZ+Q agA3woLlhjY+6aC55zUWA/I1lU3MqMl52PJFeVH3Me/r3zMpdUptWAq3yS6UYp8xNdUb k66w== ARC-Authentication-Results: i=1; mx.google.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=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb12-20020a17090b280c00b001fe4eebefe5si15514536pjb.135.2022.11.21.18.17.45; Mon, 21 Nov 2022 18:17:57 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232336AbiKVBlC (ORCPT + 91 others); Mon, 21 Nov 2022 20:41:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232315AbiKVBk7 (ORCPT ); Mon, 21 Nov 2022 20:40:59 -0500 Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.216.63.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CFD4B9489 for ; Mon, 21 Nov 2022 17:40:58 -0800 (PST) Received: from mse-fl2.zte.com.cn (unknown [10.5.228.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4NGRmT2429z8RV6M; Tue, 22 Nov 2022 09:40:57 +0800 (CST) Received: from xaxapp01.zte.com.cn ([10.88.40.50]) by mse-fl2.zte.com.cn with SMTP id 2AM1eph3031714; Tue, 22 Nov 2022 09:40:52 +0800 (+08) (envelope-from ye.xingchen@zte.com.cn) Received: from mapi (xaxapp02[null]) by mapi (Zmail) with MAPI id mid31; Tue, 22 Nov 2022 09:40:52 +0800 (CST) Date: Tue, 22 Nov 2022 09:40:52 +0800 (CST) X-Zmail-TransId: 2afa637c28a4368ff278 X-Mailer: Zmail v1.0 Message-ID: <202211220940526866294@zte.com.cn> Mime-Version: 1.0 From: To: Cc: , , , , Subject: =?UTF-8?B?W1BBVENIXSBidXM6IGlteC13ZWltOiB1c2UgZGV2bV9wbGF0Zm9ybV9nZXRfYW5kX2lvcmVtYXBfcmVzb3VyY2UoKQ==?= Content-Type: text/plain; charset="UTF-8" X-MAIL: mse-fl2.zte.com.cn 2AM1eph3031714 X-Fangmail-Gw-Spam-Type: 0 X-FangMail-Miltered: at cgslv5.04-192.168.250.137.novalocal with ID 637C28A9.000 by FangMail milter! X-FangMail-Envelope: 1669081257/4NGRmT2429z8RV6M/637C28A9.000/10.5.228.133/[10.5.228.133]/mse-fl2.zte.com.cn/ X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 637C28A9.000/4NGRmT2429z8RV6M X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY 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 From: Minghao Chi 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: Minghao Chi Signed-off-by: ye xingchen --- drivers/bus/imx-weim.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/bus/imx-weim.c b/drivers/bus/imx-weim.c index 828c66bbaa67..2a6b4f676458 100644 --- a/drivers/bus/imx-weim.c +++ b/drivers/bus/imx-weim.c @@ -263,7 +263,6 @@ static int weim_parse_dt(struct platform_device *pdev) static int weim_probe(struct platform_device *pdev) { struct weim_priv *priv; - struct resource *res; struct clk *clk; void __iomem *base; int ret; @@ -273,8 +272,7 @@ static int weim_probe(struct platform_device *pdev) return -ENOMEM; /* get the resource */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); + base = devm_platform_get_and_ioremap_resource(pdev, 0, NULL); if (IS_ERR(base)) return PTR_ERR(base); -- 2.25.1