Same conversion as with resources from static arrays to lists, except
[coreboot.git] / src / drivers / i2c / i2cmux2 / i2cmux2.c
index 30656eafcaa7828ebe0b6cf392c8fcdb26d58946..c0f8e7087829e10517b7ed4c2001993120462a60 100644 (file)
@@ -14,7 +14,7 @@ static void i2cmux2_set_link(device_t dev, unsigned int link)
                if(ops_smbus_bus(get_pbus_smbus(dev))) {
                        smbus_send_byte(dev, link); // output value
                }
-               
+
        }
 
 }
@@ -33,11 +33,11 @@ static struct device_operations i2cmux2_operations = {
 
 static void enable_dev(struct device *dev)
 {
-       if(dev->links>0)
+       if(dev->link_list != NULL)
                dev->ops = &i2cmux2_operations;
 }
 
 struct chip_operations drivers_i2c_i2cmux2_ops = {
        CHIP_NAME("i2cmux2")
-       .enable_dev = enable_dev, 
+       .enable_dev = enable_dev,
 };