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:
parent
8549836ef4
commit
5965169dad
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue