diff options
author | Mark Brown <broonie@kernel.org> | 2024-03-25 18:00:57 +0100 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-03-26 12:44:56 +0100 |
commit | 52464f59a361a3ba49d6eabc4f65d5c0b9d1de39 (patch) | |
tree | 63147dc1df7d1398abe9882d6491fec22dd493f1 /drivers/gpio | |
parent | gpio: cdev: sanitize the label before requesting the interrupt (diff) | |
download | linux-52464f59a361a3ba49d6eabc4f65d5c0b9d1de39.tar.xz linux-52464f59a361a3ba49d6eabc4f65d5c0b9d1de39.zip |
gpiolib: Add stubs for GPIO lookup functions
The gpio_device_find_by_() functions do not have stubs which means that if
they are referenced from code with an optiona dependency on gpiolib then
the code will fail to link. Add stubs for lookups via fwnode and label. I
have not added a stub for plain gpio_device_find() since it seems harder to
see a use case for that which does not depend on gpiolib.
With the addition of the GPIO reset controller (which lacks a gpiolib
dependency) to the arm64 defconfig this is causing build breaks for arm64
virtconfig in -next:
aarch64-linux-gnu-ld: drivers/reset/core.o: in function `__reset_add_reset_gpio_lookup':
/build/stage/linux/drivers/reset/core.c:861:(.text+0xccc): undefined reference to `gpio_device_find_by_fwnode'
Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/gpio')
0 files changed, 0 insertions, 0 deletions