diff options
author | Greg Watson <jarrah@users.sourceforge.net> | 2003-12-17 17:39:53 +0000 |
---|---|---|
committer | Greg Watson <jarrah@users.sourceforge.net> | 2003-12-17 17:39:53 +0000 |
commit | 5965169dada590e728cd0b7140b17bac0f63d336 (patch) | |
tree | cf691b0c4ef3e5dec93ea646f4e1dd6e65bce046 | |
parent | 8549836ef46625aa31ed8554e557652a7d5bc2a4 (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
-rw-r--r-- | src/devices/device_util.c | 2 |
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; } |