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; }