Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34203382rwd; Sun, 9 Jul 2023 07:09:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlG3v35YHZsTK3P1xvP8RonlfMWLedFtWCh1bBaQmC3d2J+NHreSl5MSVcn88ylsgQglSsJu X-Received: by 2002:a17:906:1089:b0:993:f4cd:34b5 with SMTP id u9-20020a170906108900b00993f4cd34b5mr3502607eju.29.1688911786428; Sun, 09 Jul 2023 07:09:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688911786; cv=none; d=google.com; s=arc-20160816; b=Ycq3A3opICmiPKNWHGpTplbBf9sYzOf6oyUtKy7FsVQWigGsg9h12MCmdulJYr8TSZ gB8O7I2VsnNfRea7ctLf3D2Jfxkd5XqF4seCBVSxpt46+U0yiNWikq2xCvUzyrLki100 yARsMWO77xALlCvZ3VBGwOJSIE6vhX9JCa4XHYmhwYAwqb2IcNv8GWe8PYa/eDq0Eeru wYUpjFlRMRwlBBifILzi7prCFuKiLxcpwzRgHyVRhVgNKmeYK74u/dMd59pDZg3Q8Qkg FXoeQQrtEzxlTXGDZrg/M/bUA6X2BRoXz0MB9d3USMRutjGX/VgK1HdXR1+WrDHLEk4F AKmw== 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=9UXYo/95SNwDTt092RsFBeQwC0h6p03YSfxaFJk39c0=; fh=vFKaMGMKGkevft4+8oswPoZ9Eh4zDhtANr8MR7uOXjw=; b=oabZhn0yzWC5/e7bbacb5T6ghtSKqx5lgO8GpwtvHg7fKoCARGPwzV1W+v5lWTKo/E W+9I7ulDFYc4HsIDWpCYTK29kv5sig/AKme+Gj37fYdAY3L9fiEiUTwv8LuCa48C8weF AObF8WQ58BytrkopLCAC8prvc/m99Nm7pxP39UN/EZ++R15lEESijJQYCRWYvrWQnwNv Y3DfGN2A7xmaK2J8w20Xm78EnnPn28eqnNU/mnaYlrPq1d27g1FCaxKu2u5cWgm4af1P Fw/nfJZ4cu/VVI4uOQOLwp3MJBMmhjYLzFIg38xOXATjycENKQwLODmJDWrz5llh2IaS Jj0g== 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 v1-20020a170906b00100b009888cc2ac57si2672659ejy.284.2023.07.09.07.09.22; Sun, 09 Jul 2023 07:09:46 -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 S232159AbjGINnF (ORCPT + 99 others); Sun, 9 Jul 2023 09:43:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229760AbjGINnE (ORCPT ); Sun, 9 Jul 2023 09:43:04 -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 F27E7103; Sun, 9 Jul 2023 06:43:02 -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 1qIUgk-0007Yd-JX; Sun, 09 Jul 2023 15:42:58 +0200 From: Martin Kaiser To: Laxman Dewangan , Dmitry Torokhov , Thierry Reding , Jonathan Hunter Cc: Martin Kaiser , linux-input@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Input: tegra-kbc - use devm_platform_ioremap_resource Date: Sun, 9 Jul 2023 15:41:08 +0200 Message-Id: <20230709134109.182418-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/input/keyboard/tegra-kbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/keyboard/tegra-kbc.c b/drivers/input/keyboard/tegra-kbc.c index d5a6c7d8eb25..c9a823ea45d0 100644 --- a/drivers/input/keyboard/tegra-kbc.c +++ b/drivers/input/keyboard/tegra-kbc.c @@ -640,7 +640,7 @@ static int tegra_kbc_probe(struct platform_device *pdev) timer_setup(&kbc->timer, tegra_kbc_keypress_timer, 0); - kbc->mmio = devm_platform_get_and_ioremap_resource(pdev, 0, NULL); + kbc->mmio = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(kbc->mmio)) return PTR_ERR(kbc->mmio); -- 2.30.2