Skip to content

Commit

Permalink
PCI: kirin: Fix reset gpio name
Browse files Browse the repository at this point in the history
As documented in the devicetree bindings (pci/kirin-pcie.txt) and the
reset gpio name must be 'reset-gpios'. However, current driver
erroneously looks for a 'reset-gpio' resource which makes the driver
probe fail. Fix it.

Fixes: fc5165d ("PCI: kirin: Add HiSilicon Kirin SoC PCIe controller driver")
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
[lorenzo.pieralisi@arm.com: updated the commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Xiaowei Song <songxiaowei@hisilicon.com>
  • Loading branch information
Loic Poulain authored and Lorenzo Pieralisi committed Apr 17, 2018
1 parent fc31c4e commit 5db8f8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/dwc/pcie-kirin.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ static int kirin_pcie_probe(struct platform_device *pdev)
return ret;

kirin_pcie->gpio_id_reset = of_get_named_gpio(dev->of_node,
"reset-gpio", 0);
"reset-gpios", 0);
if (kirin_pcie->gpio_id_reset < 0)
return -ENODEV;

Expand Down

0 comments on commit 5db8f8d

Please sign in to comment.