Same conversion as with resources from static arrays to lists, except
[coreboot.git] / src / devices / smbus_ops.c
index e2cd0543eb1bcf2dbb8986ea81c7441695d0e116..4a61e87a984f38e35a5da2c83051f0501ac25055 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * This file is part of the LinuxBIOS project.
+ * This file is part of the coreboot project.
  *
  * Copyright (C) 2004 Tyan
  * (Written by Yinghai Lu <yhlu@tyan.com> for Tyan)
@@ -32,9 +32,8 @@ struct bus *get_pbus_smbus(device_t dev)
                pbus = pbus->dev->bus;
        }
        if (!pbus || !pbus->dev || !pbus->dev->ops || !pbus->dev->ops->ops_smbus_bus) {
-               printk_alert("%s Cannot find smbus bus operations", dev_path(dev));
+               printk(BIOS_ALERT, "%s Cannot find smbus bus operations", dev_path(dev));
                die("");
-               for(;;);
        }
        return pbus;
 }
@@ -54,15 +53,15 @@ int smbus_set_link(device_t dev)
                pbus_a[pbus_num++] = pbus;
                 pbus = pbus->dev->bus;
         }
-//     printk_info("smbus_set_link: ");
+//     printk(BIOS_INFO, "smbus_set_link: ");
        for (i=pbus_num-1; i>=0; i--) {
-//             printk_info(" %s[%d] -> ", dev_path(pbus_a[i]->dev), pbus_a[i]->link);
+//             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_info(" %s\n", dev_path(dev));
+//     printk(BIOS_INFO, " %s\n", dev_path(dev));
 
         return pbus_num;
 }