summaryrefslogtreecommitdiff
path: root/src/device/pnp_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/device/pnp_device.c')
-rw-r--r--src/device/pnp_device.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/device/pnp_device.c b/src/device/pnp_device.c
index ba05c82d5e..5600231207 100644
--- a/src/device/pnp_device.c
+++ b/src/device/pnp_device.c
@@ -386,10 +386,13 @@ void pnp_enable_devices(struct device *base_dev, struct device_operations *ops,
if (dev->ops)
continue;
- if (info[i].ops == 0)
- dev->ops = ops;
- else
+ /* use LDN-specific ops override from corresponding pnp_info
+ entry if not NULL */
+ if (info[i].ops)
dev->ops = info[i].ops;
+ /* else use device ops */
+ else
+ dev->ops = ops;
get_resources(dev, &info[i]);
}