]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: rockchip: Check for pci_scan_root_bus_bridge() failure correctly
authorShawn Lin <shawn.lin@rock-chips.com>
Tue, 11 Jul 2017 10:15:08 +0000 (18:15 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 12 Jul 2017 17:50:11 +0000 (12:50 -0500)
commit3babbbfb36c997881f1c1b37d396321d5d0a5a79
treec6555a764382e85c95106838784dcaf2ed465120
parent23b2dbd392b0caf4a680714fe510afdbde9ef295
PCI: rockchip: Check for pci_scan_root_bus_bridge() failure correctly

pci_scan_root_bus_bridge() returns zero for success, or a negative errno.
A typo in 4abb36a23763 ("PCI: rockchip: Convert PCI scan API to
pci_scan_root_bus_bridge()") treated zero as a failure.

Fix the typo.

Fixes: 4abb36a23763 ("PCI: rockchip: Convert PCI scan API to pci_scan_root_bus_bridge()")
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
[bhelgaas: changelog]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/host/pcie-rockchip.c