Author: myles
Date: Mon Aug 30 23:52:38 2010
New Revision: 5757
URL: https://tracker.coreboot.org/trac/coreboot/changeset/5757

Log:
Make yabel work for non-zero bus numbers.  The link_num is not the bus number.

Signed-off-by: Myles Watson <[email protected]>
Acked-by: Myles Watson <[email protected]>

Modified:
   trunk/src/devices/oprom/yabel/device.c

Modified: trunk/src/devices/oprom/yabel/device.c
==============================================================================
--- trunk/src/devices/oprom/yabel/device.c      Mon Aug 30 19:53:13 2010        
(r5756)
+++ trunk/src/devices/oprom/yabel/device.c      Mon Aug 30 23:52:38 2010        
(r5757)
@@ -45,7 +45,7 @@
 {
        int taa_index = 0;
        struct resource *r;
-       u8 bus = bios_device.dev->bus->link_num;
+       u8 bus = bios_device.dev->bus->secondary;
        u16 devfn = bios_device.dev->path.pci.devfn;
 
        bios_device.bus =  bus;

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to