summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86/smbios.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c
index 25a41b53aa..da1b711535 100644
--- a/src/arch/x86/smbios.c
+++ b/src/arch/x86/smbios.c
@@ -675,10 +675,11 @@ static int smbios_walk_device_tree(struct device *tree, int *handle,
int len = 0;
for (dev = tree; dev; dev = dev->next) {
- printk(BIOS_INFO, "%s (%s)\n", dev_path(dev), dev_name(dev));
-
- if (dev->ops && dev->ops->get_smbios_data)
+ if (dev->enabled && dev->ops && dev->ops->get_smbios_data) {
+ printk(BIOS_INFO, "%s (%s)\n", dev_path(dev),
+ dev_name(dev));
len += dev->ops->get_smbios_data(dev, handle, current);
+ }
}
return len;
}