mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
pcidev: Move scandev_inclass logic from internal to pcidev
BUG=b:220950271 TEST=```sudo ./flashrom -p internal -r /tmp/bios <snip> Found Programmer flash chip "Opaque flash chip" (16384 kB, Programmer-specific) mapped at physical address 0x0000000000000000. Reading flash... done. ``` Change-Id: I1978e178fb73485f1c5c7e732853522847267cee Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/59277 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
This commit is contained in:

committed by
Edward O'Callaghan

parent
bc2e3b6b79
commit
6289508c5b
@ -120,11 +120,11 @@ static struct pci_dev *find_southbridge(uint16_t vendor, const char *name)
|
||||
{
|
||||
struct pci_dev *sbdev;
|
||||
|
||||
sbdev = pci_dev_find_vendorclass(vendor, 0x0601);
|
||||
sbdev = pcidev_find_vendorclass(vendor, 0x0601);
|
||||
if (!sbdev)
|
||||
sbdev = pci_dev_find_vendorclass(vendor, 0x0680);
|
||||
sbdev = pcidev_find_vendorclass(vendor, 0x0680);
|
||||
if (!sbdev)
|
||||
sbdev = pci_dev_find_vendorclass(vendor, 0x0000);
|
||||
sbdev = pcidev_find_vendorclass(vendor, 0x0000);
|
||||
if (!sbdev)
|
||||
msg_perr("No southbridge found for %s!\n", name);
|
||||
if (sbdev)
|
||||
|
Reference in New Issue
Block a user