diff options
author | Edward O'Callaghan <quasisec@google.com> | 2022-02-26 11:36:17 +1100 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2022-03-04 00:01:15 +0000 |
commit | 6289508c5bb028fa4f6ed58dfef974302c5616f9 (patch) | |
tree | 4333c8cd206de1417346191060c129ea747a2d27 /mcp6x_spi.c | |
parent | bc2e3b6b79dd1383cdf3d965df2fc5c0d6596b02 (diff) | |
download | flashrom-6289508c5bb028fa4f6ed58dfef974302c5616f9.tar.gz flashrom-6289508c5bb028fa4f6ed58dfef974302c5616f9.tar.bz2 flashrom-6289508c5bb028fa4f6ed58dfef974302c5616f9.zip |
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>
Diffstat (limited to 'mcp6x_spi.c')
-rw-r--r-- | mcp6x_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcp6x_spi.c b/mcp6x_spi.c index 81ef1b51..d136be47 100644 --- a/mcp6x_spi.c +++ b/mcp6x_spi.c @@ -124,7 +124,7 @@ int mcp6x_spi_init(int want_spi) uint8_t mcp_gpiostate; /* Look for the SMBus device (SMBus PCI class) */ - smbusdev = pci_dev_find_vendorclass(0x10de, 0x0c05); + smbusdev = pcidev_find_vendorclass(0x10de, 0x0c05); if (!smbusdev) { if (want_spi) { msg_perr("ERROR: SMBus device not found. Not enabling " |