From e77df3fa306fe916e017199f3344b737f27493e7 Mon Sep 17 00:00:00 2001 From: Ido Yariv Date: Tue, 22 Dec 2015 21:43:03 -0500 Subject: [PATCH] pci: re-initialize the lookup device for each bus The current scan loop does not re-initialize the device number, so only the first bus is scanned. Change-Id: I9dc97cecd5652c353b09ab5692f59f562436f902 Signed-off-by: Ido Yariv Signed-off-by: Ido Yariv --- drivers/pci/pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 748bb13ceca..f91e90886f0 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -387,6 +387,7 @@ int pci_bus_scan(struct pci_dev_info *dev_info) lookup.func = 0; } } + lookup.dev = 0; } return 0;