Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34203177rwd; Sun, 9 Jul 2023 07:09:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlHzIV1u+ejKs+9naS/HoGP8RL8VYgMqgYVY+SyAQLtpct6BjKU9a76KHeBYYJuOEzSzLIzb X-Received: by 2002:a17:906:5308:b0:993:cbad:5934 with SMTP id h8-20020a170906530800b00993cbad5934mr7919565ejo.46.1688911775934; Sun, 09 Jul 2023 07:09:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688911775; cv=none; d=google.com; s=arc-20160816; b=e7gtWLXyO9qVr931T5ENmwJoBQKXVHA56lPu7iXvsGgevY/6iKlEdfTThyUty23jhe Daw5wjfhvKWO+MC12NYjRco91VuzRM6XsojkSC5Q/ZmCQ2BHCUHA3dgs4Z7gdhnjF/mG UBQ+YM0UwUx9gvJUU8RPMDQ0f7UIz5eBUqiDeFrbiLCrIi1Ww+SQ8BQ03KeyrgBTCTK4 cER8Ytqb+cgmRhj0C2nGKSy8tcwPWRH92ZIWFpWOzKXZy6C9QHQgjmyrUZD2FURNurEt /+gswHSLGuYF1vjZ2IrsQz/3P6usWbTYJY8EjRB2A+OEzU3Q2o57Czg+d/SUk2geeBs3 bwPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=tp/z5Fz2d/z7jYM3tCsb/QLl4lO/X5VkaRGvndnWdpo=; fh=qm+yncg+p5dUnXxfDNai4d5GsjoHLzvEqp4S7QMGov8=; b=C+Bu11yrg5hnpObWoABTjn9Y6DZ99Syn+y6807g0qgAjGR35fiESwr9SBZ9VOZqgCn IPJ6RV11NfXibj9DJWkLjhWZwrAdNrMhuDjUIecKkRWGQvO9DnEPtZxqAlpJ/lyQ4UVa 5XI5H2FKCEDAeq675FB/dsjC+F/ELtBt3byAHjI5HQ86BwrtYcNgMrvRa3Tk3z3N68zw Xzs0GNrIwLH0dForVBYmgGawBf9QKAfVFXD8Y+KTtJuscZMxHSMks2lVH2TLkSkkpKDX JGZSAyy7aT6jzpW7lItBeCSvz4AIsPRCjxjimHP2fYnuB+IRqAC1dONA5L0tmVMpMEy4 i1kQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e17-20020a1709062d5100b0099290e2c162si642329eji.444.2023.07.09.07.09.12; Sun, 09 Jul 2023 07:09:35 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230412AbjGINmN (ORCPT + 99 others); Sun, 9 Jul 2023 09:42:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229760AbjGINmM (ORCPT ); Sun, 9 Jul 2023 09:42:12 -0400 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7FEF10C for ; Sun, 9 Jul 2023 06:42:10 -0700 (PDT) Received: from dslb-188-097-041-180.188.097.pools.vodafone-ip.de ([188.97.41.180] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1qIUfk-0007YB-Ov; Sun, 09 Jul 2023 15:41:56 +0200 From: Martin Kaiser To: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: Martin Kaiser , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] bus: imx-weim: use devm_platform_ioremap_resource Date: Sun, 9 Jul 2023 15:39:44 +0200 Message-Id: <20230709133945.182307-1-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,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 devm_platform_get_and_ioremap_resource maps a resource and returns its physical address. If we don't need the physical address, we should call devm_platform_ioremap_resource instead. Signed-off-by: Martin Kaiser --- drivers/bus/imx-weim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/imx-weim.c b/drivers/bus/imx-weim.c index 52a5d0447390..42c9386a7b42 100644 --- a/drivers/bus/imx-weim.c +++ b/drivers/bus/imx-weim.c @@ -273,7 +273,7 @@ static int weim_probe(struct platform_device *pdev) return -ENOMEM; /* get the resource */ - base = devm_platform_get_and_ioremap_resource(pdev, 0, NULL); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); -- 2.30.2