summaryrefslogtreecommitdiff
path: root/src/devices
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/device_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/device_util.c b/src/devices/device_util.c
index 6652c86ea0..c806726853 100644
--- a/src/devices/device_util.c
+++ b/src/devices/device_util.c
@@ -75,7 +75,7 @@ struct device *dev_find_class(unsigned int class, struct device *from)
from = all_devices;
else
from = from->next;
- while (from && from->class != class)
+ while (from && (from->class & 0xffffff00) != class)
from = from->next;
return from;
}