summaryrefslogtreecommitdiff
path: root/src/drivers/i2c/i2cmux2
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/i2c/i2cmux2')
-rw-r--r--src/drivers/i2c/i2cmux2/i2cmux2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/i2c/i2cmux2/i2cmux2.c b/src/drivers/i2c/i2cmux2/i2cmux2.c
index 4d2eeb99e6..c0f8e70878 100644
--- a/src/drivers/i2c/i2cmux2/i2cmux2.c
+++ b/src/drivers/i2c/i2cmux2/i2cmux2.c
@@ -33,7 +33,7 @@ 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;
}