Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

hte: tegra194: add GPIOLIB dependency

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 <arnd@arndb.de>
Acked-by: Dipen Patel <dipenp@nvidia.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

authored by

Arnd Bergmann and committed by
Bartosz Golaszewski
9bc63311 dc850faa

+1
+1
drivers/hte/Kconfig
··· 17 17 config HTE_TEGRA194 18 18 tristate "NVIDIA Tegra194 HTE Support" 19 19 depends on ARCH_TEGRA_194_SOC 20 + depends on GPIOLIB 20 21 help 21 22 Enable this option for integrated hardware timestamping engine also 22 23 known as generic timestamping engine (GTE) support on NVIDIA Tegra194