Skip to content

Commit 9d17bec

Browse files
committed
Merge branch 'remotes/lorenzo/pci/apple'
- Switch from gpiod_get_from_of_node() to generic devm GPIO API (Dmitry Torokhov) * remotes/lorenzo/pci/apple: PCI: apple: Do not leak reset GPIO on unbind/unload/error
2 parents ec6daf2 + a6b9ede commit 9d17bec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/pci/controller/pcie-apple.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,8 @@ static int apple_pcie_setup_port(struct apple_pcie *pcie,
516516
u32 stat, idx;
517517
int ret, i;
518518

519-
reset = gpiod_get_from_of_node(np, "reset-gpios", 0,
520-
GPIOD_OUT_LOW, "PERST#");
519+
reset = devm_fwnode_gpiod_get(pcie->dev, of_fwnode_handle(np), "reset",
520+
GPIOD_OUT_LOW, "PERST#");
521521
if (IS_ERR(reset))
522522
return PTR_ERR(reset);
523523

0 commit comments

Comments
 (0)