From patchwork Mon Oct 23 11:56:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13432802 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2932518021 for ; Mon, 23 Oct 2023 11:56:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Mn5kib3B" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10AA5C433C7; Mon, 23 Oct 2023 11:56:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698062212; bh=bJRfXy2TRIDrKcAouw/75Fhv7CzjeSwcjJuB4GB6vlU=; h=From:To:Cc:Subject:Date:From; b=Mn5kib3BI3Gy5PE0SXj5IdYJs0wnU7kITW871Jj8vLdJmT2LGr2tOiqQa76DwNmi6 1XOj9sUw7IYJa3/r0DzX2Co2JHDaw1J4JDlItVZQGRMNLEp/AQ+SpHni+2OCfvX769 OIBxqx+53J5hl2qsEFPnCdk3L7rp0JFRfPXLjdF7UfXdXptDwyXXcB3biQRAaZuSKT Heh7ippAW/AN5okuoG1+BfX/9T8E2qSGCCbtpb3ARSzN3MKbLQG8Uw+9ifgZUB/KCt AAx6U0dYzE7zSiPy0x4fITSAHy3lQ4cLcZIbTLy4YhA96634LhF6BdrmHoIy9ZffZe +TfNqzT14RhkQ== From: Arnd Bergmann To: Dipen Patel , Andy Shevchenko , Bartosz Golaszewski , Linus Walleij Cc: Arnd Bergmann , timestamp@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] hte: tegra194: add GPIOLIB dependency Date: Mon, 23 Oct 2023 13:56:41 +0200 Message-Id: <20231023115646.3573494-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: timestamp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Arnd Bergmann The driver started calling into a few interfaces that are part of GPIOLIB and don't have stub implementations otherwise: drivers/hte/hte-tegra194.c: In function 'tegra_hte_line_xlate': drivers/hte/hte-tegra194.c:424:48: error: implicit declaration of function 'gpio_device_get_base'; did you mean 'gpio_device_get_desc'? [-Werror=implicit-function-declaration] 424 | line_id = desc->attr.line_id - gpio_device_get_base(gs->gdev); | ^~~~~~~~~~~~~~~~~~~~ | gpio_device_get_desc Add a Kconfig dependency to only allow building when this is defined. Fixes: dc850faa28ee0 ("hte: tegra194: don't access struct gpio_chip") Signed-off-by: Arnd Bergmann Reviewed-by: Bartosz Golaszewski Acked-by: Dipen Patel --- drivers/hte/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hte/Kconfig b/drivers/hte/Kconfig index 083e67492bf2e..641af722b555d 100644 --- a/drivers/hte/Kconfig +++ b/drivers/hte/Kconfig @@ -17,6 +17,7 @@ if HTE config HTE_TEGRA194 tristate "NVIDIA Tegra194 HTE Support" depends on (ARCH_TEGRA_194_SOC || COMPILE_TEST) + depends on GPIOLIB help Enable this option for integrated hardware timestamping engine also known as generic timestamping engine (GTE) support on NVIDIA Tegra194