From 5965169dada590e728cd0b7140b17bac0f63d336 Mon Sep 17 00:00:00 2001 From: Greg Watson Date: Wed, 17 Dec 2003 17:39:53 +0000 Subject: [PATCH] Don't compare low 8 bits, which are revision. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1318 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/devices/device_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }