diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2022-11-07 20:41:42 -0800 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2022-11-25 16:14:58 +0100 |
commit | de383d8008c15519ed13eecfdd0a90882d7009da (patch) | |
tree | 8d37a65a3447359e244a922d2e47a3133019696e | |
parent | fbc82b9b2400e1ce88dc73471c6d5aaf6053677a (diff) | |
download | linux-stable-de383d8008c15519ed13eecfdd0a90882d7009da.tar.gz linux-stable-de383d8008c15519ed13eecfdd0a90882d7009da.tar.bz2 linux-stable-de383d8008c15519ed13eecfdd0a90882d7009da.zip |
drm/tegra: Switch to using devm_fwnode_gpiod_get()
devm_gpiod_get_from_of_node() is going away and GPIO consumers should
use generic device/firmware node APIs to fetch GPIOs assigned to them.
Switch the driver to use devm_fwnode_gpiod_get() instead.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r-- | drivers/gpu/drm/tegra/output.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/tegra/output.c b/drivers/gpu/drm/tegra/output.c index 47d26b5d9945..a8925dcd7edd 100644 --- a/drivers/gpu/drm/tegra/output.c +++ b/drivers/gpu/drm/tegra/output.c @@ -133,11 +133,11 @@ int tegra_output_probe(struct tegra_output *output) } } - output->hpd_gpio = devm_gpiod_get_from_of_node(output->dev, - output->of_node, - "nvidia,hpd-gpio", 0, - GPIOD_IN, - "HDMI hotplug detect"); + output->hpd_gpio = devm_fwnode_gpiod_get(output->dev, + of_fwnode_handle(output->of_node), + "nvidia,hpd", + GPIOD_IN, + "HDMI hotplug detect"); if (IS_ERR(output->hpd_gpio)) { if (PTR_ERR(output->hpd_gpio) != -ENOENT) return PTR_ERR(output->hpd_gpio); |