Skip to content

Commit 4e5db79

Browse files
committed
Merge branch 'remotes/lorenzo/pci/tegra'
- Switch from devm_gpiod_get_from_of_node() to devm_fwnode_gpiod_get() (Dmitry Torokhov) * remotes/lorenzo/pci/tegra: PCI: tegra: Switch to using devm_fwnode_gpiod_get
2 parents 008ee71 + 16e3f40 commit 4e5db79

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

drivers/pci/controller/pci-tegra.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2197,10 +2197,11 @@ static int tegra_pcie_parse_dt(struct tegra_pcie *pcie)
21972197
* and in this case fall back to using AFI per port register
21982198
* to toggle PERST# SFIO line.
21992199
*/
2200-
rp->reset_gpio = devm_gpiod_get_from_of_node(dev, port,
2201-
"reset-gpios", 0,
2202-
GPIOD_OUT_LOW,
2203-
label);
2200+
rp->reset_gpio = devm_fwnode_gpiod_get(dev,
2201+
of_fwnode_handle(port),
2202+
"reset",
2203+
GPIOD_OUT_LOW,
2204+
label);
22042205
if (IS_ERR(rp->reset_gpio)) {
22052206
if (PTR_ERR(rp->reset_gpio) == -ENOENT) {
22062207
rp->reset_gpio = NULL;

0 commit comments

Comments
 (0)