summaryrefslogtreecommitdiff
path: root/src/devices
diff options
context:
space:
mode:
authorGreg Watson <jarrah@users.sourceforge.net>2003-12-17 17:39:53 +0000
committerGreg Watson <jarrah@users.sourceforge.net>2003-12-17 17:39:53 +0000
commit5965169dada590e728cd0b7140b17bac0f63d336 (patch)
treecf691b0c4ef3e5dec93ea646f4e1dd6e65bce046 /src/devices
parent8549836ef46625aa31ed8554e557652a7d5bc2a4 (diff)
Don't compare low 8 bits, which are revision.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1318 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
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;
}