Same conversion as with resources from static arrays to lists, except
[coreboot.git] / src / mainboard / emulation / qemu-x86 / northbridge.c
index 7b84928883ef3db8e9099ff8ff744b03b580072a..f4a0cc2973aee84af6ae6096ad66ed31c64c04a1 100644 (file)
@@ -60,7 +60,7 @@ extern uint64_t high_tables_base, high_tables_size;
 
 static void cpu_pci_domain_set_resources(device_t dev)
 {
-       u32 pci_tolm = find_pci_tolm(&dev->link[0]);
+       u32 pci_tolm = find_pci_tolm(dev->link_list);
        unsigned long tomk = 0, tolmk;
        int idx;
 
@@ -91,7 +91,7 @@ static void cpu_pci_domain_set_resources(device_t dev)
        high_tables_size = HIGH_TABLES_SIZE * 1024;
 #endif
 
-       assign_resources(&dev->link[0]);
+       assign_resources(dev->link_list);
 }
 
 static void cpu_pci_domain_read_resources(struct device *dev)