summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
Diffstat (limited to 'src/device')
-rw-r--r--src/device/pnp_device.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/device/pnp_device.c b/src/device/pnp_device.c
index da691f8efe..f39f8f9893 100644
--- a/src/device/pnp_device.c
+++ b/src/device/pnp_device.c
@@ -155,6 +155,12 @@ void pnp_enable(device_t dev)
}
}
+void pnp_alt_enable(device_t dev)
+{
+ pnp_set_logical_device(dev);
+ pnp_set_enable(dev, !!dev->enabled);
+}
+
struct device_operations pnp_ops = {
.read_resources = pnp_read_resources,
.set_resources = pnp_set_resources,