summaryrefslogtreecommitdiff
path: root/src/devices/smbus_ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/smbus_ops.c')
-rw-r--r--src/devices/smbus_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/smbus_ops.c b/src/devices/smbus_ops.c
index b22428123e..4a61e87a98 100644
--- a/src/devices/smbus_ops.c
+++ b/src/devices/smbus_ops.c
@@ -58,7 +58,7 @@ int smbus_set_link(device_t dev)
// printk(BIOS_INFO, " %s[%d] -> ", dev_path(pbus_a[i]->dev), pbus_a[i]->link);
if (ops_smbus_bus(get_pbus_smbus(pbus_a[i]->dev))) {
if (pbus_a[i]->dev->ops && pbus_a[i]->dev->ops->set_link)
- pbus_a[i]->dev->ops->set_link(pbus_a[i]->dev, pbus_a[i]->link);
+ pbus_a[i]->dev->ops->set_link(pbus_a[i]->dev, pbus_a[i]->link_num);
}
}
// printk(BIOS_INFO, " %s\n", dev_path(dev));