summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
Diffstat (limited to 'src/device')
-rw-r--r--src/device/root_device.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/device/root_device.c b/src/device/root_device.c
index ed1f7d7bfc..9b3fd49598 100644
--- a/src/device/root_device.c
+++ b/src/device/root_device.c
@@ -72,17 +72,17 @@ void scan_lpc_bus(device_t bus)
printk(BIOS_SPEW, "%s for %s done\n", __func__, dev_path(bus));
}
-void scan_smbus(device_t bus)
+void scan_generic_bus(device_t bus)
{
device_t child;
struct bus *link;
- static int smbus_max = 0;
+ static int bus_max = 0;
printk(BIOS_SPEW, "%s for %s\n", __func__, dev_path(bus));
for (link = bus->link_list; link; link = link->next) {
- link->secondary = ++smbus_max;
+ link->secondary = ++bus_max;
for (child = link->children; child; child = child->sibling) {
@@ -92,7 +92,7 @@ void scan_smbus(device_t bus)
if (child->ops && child->ops->enable)
child->ops->enable(child);
- printk(BIOS_DEBUG, "smbus: %s[%d]->", dev_path(child->bus->dev),
+ printk(BIOS_DEBUG, "bus: %s[%d]->", dev_path(child->bus->dev),
child->bus->link_num);
printk(BIOS_DEBUG, "%s %s\n", dev_path(child),
@@ -103,6 +103,11 @@ void scan_smbus(device_t bus)
printk(BIOS_SPEW, "%s for %s done\n", __func__, dev_path(bus));
}
+void scan_smbus(device_t bus)
+{
+ scan_generic_bus(bus);
+}
+
/**
* Scan root bus for generic systems.
*