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
This commit is contained in:
commit
9d17becd49
|
@ -516,8 +516,8 @@ static int apple_pcie_setup_port(struct apple_pcie *pcie,
|
|||
u32 stat, idx;
|
||||
int ret, i;
|
||||
|
||||
reset = gpiod_get_from_of_node(np, "reset-gpios", 0,
|
||||
GPIOD_OUT_LOW, "PERST#");
|
||||
reset = devm_fwnode_gpiod_get(pcie->dev, of_fwnode_handle(np), "reset",
|
||||
GPIOD_OUT_LOW, "PERST#");
|
||||
if (IS_ERR(reset))
|
||||
return PTR_ERR(reset);
|
||||
|
||||
|
|
Loading…
Reference in New Issue