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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/pnp_device.c b/src/devices/pnp_device.c
index 5a2e85795d..207e3db23f 100644
--- a/src/devices/pnp_device.c
+++ b/src/devices/pnp_device.c
@@ -131,7 +131,7 @@ void pnp_enable_resources(device_t dev)
void pnp_enable(device_t dev)
{
- if (!dev->enable) {
+ if (!dev->enabled) {
pnp_set_logical_device(dev);
pnp_set_enable(dev, 0);
}