Message ID | 20230709133945.182307-1-martin@kaiser.cx |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4465208vqx; Sun, 9 Jul 2023 07:09:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlH5MOgx0qQ1nWY1Rxo8mudkO+h+wjXhS4o3qA/F6jvyhqzPwYPiepeHmK1uKINjtXKUAsYG X-Received: by 2002:a17:907:a704:b0:992:630f:98b6 with SMTP id vw4-20020a170907a70400b00992630f98b6mr9900878ejc.37.1688911782826; Sun, 09 Jul 2023 07:09:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688911782; cv=none; d=google.com; s=arc-20160816; b=0hBBwqLydPvMaOn2A/Pvc99gDpiRR7PTGPUWqBUwZzIi5zTE+LgkvmT4WMa5bwFlS7 1QHzHL6U/gD6+18kn5RtmxpkUqXsI8kCXGlz4Q5XiQdd8hC+B5BayuloVgJgsHw0KwSk 9JBAJ5w4OTALPy2dafxWLcUS9oY5DtFy0J41GWy7wiViDL/ByCoK0Dp5EB4V6TRdGAbl F2tGYmbw2jwVbDLLXLo9F01m3dOobiLNw0h9K5sjsjUVjQzc0vLButg8AGlDUj8Qd8it bfuU4Z7pjJahF7XXaO1Bz4srD+1Y4MHliGBuseAYxyw4K6bLxEB1E66J/qAC/jGW4o5k h49A== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p19-20020a17090635d300b009928c9d9971si6652098ejb.875.2023.07.09.07.09.18; Sun, 09 Jul 2023 07:09:42 -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 S231186AbjGINmO (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Sun, 9 Jul 2023 09:42:14 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <martin@kaiser.cx>) id 1qIUfk-0007YB-Ov; Sun, 09 Jul 2023 15:41:56 +0200 From: Martin Kaiser <martin@kaiser.cx> To: Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com> Cc: Martin Kaiser <martin@kaiser.cx>, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770952361366370947?= X-GMAIL-MSGID: =?utf-8?q?1770952361366370947?= |
Series |
bus: imx-weim: use devm_platform_ioremap_resource
|
|
Commit Message
Martin Kaiser
July 9, 2023, 1:39 p.m. UTC
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 <martin@kaiser.cx>
---
drivers/bus/imx-weim.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Sun, Jul 09, 2023 at 03:39:44PM +0200, Martin Kaiser wrote: > 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 <martin@kaiser.cx> Applied, thanks!
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);