Don't compare low 8 bits, which are revision.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1318 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user