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 <idox.yariv@intel.com>
Signed-off-by: Ido Yariv <ido@wizery.com>
This commit is contained in:
Ido Yariv 2015-12-22 21:43:03 -05:00 committed by Anas Nashif
commit e77df3fa30

View file

@ -387,6 +387,7 @@ int pci_bus_scan(struct pci_dev_info *dev_info)
lookup.func = 0; lookup.func = 0;
} }
} }
lookup.dev = 0;
} }
return 0; return 0;