summaryrefslogtreecommitdiffstats
path: root/board_enable.c
diff options
context:
space:
mode:
Diffstat (limited to 'board_enable.c')
-rw-r--r--board_enable.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board_enable.c b/board_enable.c
index d35b151b0..3e6a5a7c6 100644
--- a/board_enable.c
+++ b/board_enable.c
@@ -1095,11 +1095,12 @@ static int nvidia_mcp_gpio_set(int gpio, int raise)
return -1;
}
- dev = pcidev_getdevfn(dev, 1);
+ dev = pci_get_dev(pacc, dev->domain, dev->bus, dev->dev, 1);
if (!dev) {
msg_perr("MCP SMBus controller could not be found\n");
return -1;
}
+ pci_fill_info(dev, PCI_FILL_IDENT);
devclass = pci_read_word(dev, PCI_CLASS_DEVICE);
if (devclass != 0x0C05) {
msg_perr("Unexpected device class %04x for SMBus"