mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-02 08:50:39 -05:00
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 inae13cb9b19("PCI: rockchip: Convert PCI scan API to pci_scan_root_bus_bridge()") treated zero as a failure. Fix the typo. Fixes:ae13cb9b19("PCI: rockchip: Convert PCI scan API to pci_scan_root_bus_bridge()") Signed-off-by: Shawn Lin <[email protected]> [bhelgaas: changelog] Signed-off-by: Bjorn Helgaas <[email protected]> Acked-by: Lorenzo Pieralisi <[email protected]>
This commit is contained in:
parent
f01fc41773
commit
34d5ac2af6
1 changed files with 1 additions and 1 deletions
|
|
@ -1483,7 +1483,7 @@ static int rockchip_pcie_probe(struct platform_device *pdev)
|
|||
bridge->swizzle_irq = pci_common_swizzle;
|
||||
|
||||
err = pci_scan_root_bus_bridge(bridge);
|
||||
if (!err)
|
||||
if (err < 0)
|
||||
goto err_free_res;
|
||||
|
||||
bus = bridge->bus;
|
||||
|
|
|
|||
Loading…
Reference in a new issue