summaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/pci-tegra.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2022-12-10 10:36:39 -0600
committerBjorn Helgaas <bhelgaas@google.com>2022-12-10 10:36:39 -0600
commit4e5db7983de0d4bed83e2cdaf9f04093e8b8e1c4 (patch)
treeb86da9b3f2d95fb5579e3769843acf184587ff8a /drivers/pci/controller/pci-tegra.c
parent008ee711f99fdc0e02f0c5eee10e5d067d67c110 (diff)
parent16e3f40779659ff525364e5d9df369953fa7192b (diff)
downloadlinux-stable-4e5db7983de0d4bed83e2cdaf9f04093e8b8e1c4.tar.gz
linux-stable-4e5db7983de0d4bed83e2cdaf9f04093e8b8e1c4.tar.bz2
linux-stable-4e5db7983de0d4bed83e2cdaf9f04093e8b8e1c4.zip
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
Diffstat (limited to 'drivers/pci/controller/pci-tegra.c')
-rw-r--r--drivers/pci/controller/pci-tegra.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/pci/controller/pci-tegra.c b/drivers/pci/controller/pci-tegra.c
index 24478ae5a345..b6f77b102709 100644
--- a/drivers/pci/controller/pci-tegra.c
+++ b/drivers/pci/controller/pci-tegra.c
@@ -2197,10 +2197,11 @@ static int tegra_pcie_parse_dt(struct tegra_pcie *pcie)
* and in this case fall back to using AFI per port register
* to toggle PERST# SFIO line.
*/
- rp->reset_gpio = devm_gpiod_get_from_of_node(dev, port,
- "reset-gpios", 0,
- GPIOD_OUT_LOW,
- label);
+ rp->reset_gpio = devm_fwnode_gpiod_get(dev,
+ of_fwnode_handle(port),
+ "reset",
+ GPIOD_OUT_LOW,
+ label);
if (IS_ERR(rp->reset_gpio)) {
if (PTR_ERR(rp->reset_gpio) == -ENOENT) {
rp->reset_gpio = NULL;