Skip to content

Commit de383d8

Browse files
dtorthierryreding
authored andcommitted
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 <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent fbc82b9 commit de383d8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/gpu/drm/tegra/output.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,11 @@ int tegra_output_probe(struct tegra_output *output)
133133
}
134134
}
135135

136-
output->hpd_gpio = devm_gpiod_get_from_of_node(output->dev,
137-
output->of_node,
138-
"nvidia,hpd-gpio", 0,
139-
GPIOD_IN,
140-
"HDMI hotplug detect");
136+
output->hpd_gpio = devm_fwnode_gpiod_get(output->dev,
137+
of_fwnode_handle(output->of_node),
138+
"nvidia,hpd",
139+
GPIOD_IN,
140+
"HDMI hotplug detect");
141141
if (IS_ERR(output->hpd_gpio)) {
142142
if (PTR_ERR(output->hpd_gpio) != -ENOENT)
143143
return PTR_ERR(output->hpd_gpio);

0 commit comments

Comments
 (0)