2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 07:04:00 +08:00

PCI: kirin: Fix reset gpio name

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: fc5165db24 ("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>
This commit is contained in:
Loic Poulain 2018-04-03 11:19:01 +02:00 committed by Lorenzo Pieralisi
parent fc31c4e347
commit 5db8f8d109

View File

@ -486,7 +486,7 @@ static int kirin_pcie_probe(struct platform_device *pdev)
return ret; return ret;
kirin_pcie->gpio_id_reset = of_get_named_gpio(dev->of_node, 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) if (kirin_pcie->gpio_id_reset < 0)
return -ENODEV; return -ENODEV;