From patchwork Sun Jul 9 13:41:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 117512 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4465343vqx; Sun, 9 Jul 2023 07:09:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlGR5Z8QosxkakgdC56JZZefv4qAGPkYdwNXLxBy9sy9RE9HC3hl63yRR8C5dZYm2JanzKBj X-Received: by 2002:a5d:590f:0:b0:313:e971:53af with SMTP id v15-20020a5d590f000000b00313e97153afmr7852162wrd.32.1688911797770; Sun, 09 Jul 2023 07:09:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688911797; cv=none; d=google.com; s=arc-20160816; b=KHUme+LfebZ5cxjEThVfxK577+lCm4ElHl/7Q/61K7em33DV2dTDU1gkSwWUI/q+JT dhk0PM4xHXsNIbgo/QUCMbJe7ihonZFg2W9MAEHYtywBv+GgfxDmVEFPp4OwOcoAsWWt O86+RL8lNO1hNb7qvWy277ebFoQLf5bXQMnN02uwqKNaIVDmERcuhHbF2DnHeCyD222C NPoI2ZBiQPNxOSYKFZ4//jrxzyzTnOzcl4uBaZf6yM8eZU2wreRhkw7ZMpCFLiFzQnDm baTqdKDtN97tNOvEf8AvWvp6dggdQcsEs/Trbx/oZO4SFXNlCMW3t3/GL3Hs9n0RT+YE 4fmw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n21-20020aa7d055000000b0051df52aa65bsi6603850edo.155.2023.07.09.07.09.34; Sun, 09 Jul 2023 07:09:57 -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 S232798AbjGINnF (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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770952376991873344?= X-GMAIL-MSGID: =?utf-8?q?1770952376991873344?= 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 Acked-by: Thierry Reding --- 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);