mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
drm/tegra: Drop devm_gpiod_get_from_of_node
The function devm_fwnode_gpiod_get() has been supported since Linux v5.5 and so it is not necessary to support devm_gpiod_get_from_of_node for pre-v6.3 kernels. Drop devm_gpiod_get_from_of_node() support to simplify the Tegra DRM driver. Bug 4119327 Change-Id: I5d1fb433d99f350e127e439f351412f8ec3ebc8f Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2979270 Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
79e8e9cf3a
commit
c563f4b4e4
@@ -134,19 +134,11 @@ int tegra_output_probe(struct tegra_output *output)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0)
|
|
||||||
output->hpd_gpio = devm_fwnode_gpiod_get(output->dev,
|
output->hpd_gpio = devm_fwnode_gpiod_get(output->dev,
|
||||||
of_fwnode_handle(output->of_node),
|
of_fwnode_handle(output->of_node),
|
||||||
"nvidia,hpd",
|
"nvidia,hpd",
|
||||||
GPIOD_IN,
|
GPIOD_IN,
|
||||||
"HDMI hotplug detect");
|
"HDMI hotplug detect");
|
||||||
#else
|
|
||||||
output->hpd_gpio = devm_gpiod_get_from_of_node(output->dev,
|
|
||||||
output->of_node,
|
|
||||||
"nvidia,hpd-gpio", 0,
|
|
||||||
GPIOD_IN,
|
|
||||||
"HDMI hotplug detect");
|
|
||||||
#endif
|
|
||||||
if (IS_ERR(output->hpd_gpio)) {
|
if (IS_ERR(output->hpd_gpio)) {
|
||||||
if (PTR_ERR(output->hpd_gpio) != -ENOENT)
|
if (PTR_ERR(output->hpd_gpio) != -ENOENT)
|
||||||
return PTR_ERR(output->hpd_gpio);
|
return PTR_ERR(output->hpd_gpio);
|
||||||
|
|||||||
Reference in New Issue
Block a user