PCI: tegra: Fix reporting GPIO error value
authorPali Rohár <pali@kernel.org>
Tue, 14 Apr 2020 10:25:12 +0000 (12:25 +0200)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 11 May 2020 09:36:18 +0000 (10:36 +0100)
commit63605f1cfcc56bcb25c48bbee75a679d85ba7675
tree2b3e8d1a1919ef096ab180a33885bd4f3c37cbe7
parent8f3d9f354286745c751374f5f1fcafee6b3f3136
PCI: tegra: Fix reporting GPIO error value

Error code is stored in rp->reset_gpio and not in err variable.

Link: https://lore.kernel.org/r/20200414102512.27506-1-pali@kernel.org
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Acked-by: Rob Herring <robh@kernel.org>
drivers/pci/controller/pci-tegra.c