mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
In Linux v6.7, both gpio_device_find() and gpio_device_get_chip() were added. However, don't assume that if one is present then so is the other and so add a test to check if gpio_device_get_chip() is also present. Bug 4471899 Change-Id: I0c547a52b0f397aef43884ab76d815573e8ed3f8 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3112133 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>