summaryrefslogtreecommitdiff
path: root/src/devices/pnp_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/pnp_device.c')
-rw-r--r--src/devices/pnp_device.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/devices/pnp_device.c b/src/devices/pnp_device.c
index fadab85589..f03208d3f9 100644
--- a/src/devices/pnp_device.c
+++ b/src/devices/pnp_device.c
@@ -240,6 +240,10 @@ void pnp_enable_devices(device_t base_dev, struct device_operations *ops,
/* Setup the ops and resources on the newly allocated devices */
for(i = 0; i < functions; i++) {
+ /* Skip logical devices this Super I/O doesn't have. */
+ if (info[i].function == -1)
+ continue;
+
path.u.pnp.device = info[i].function;
dev = alloc_find_dev(base_dev->bus, &path);