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:
Greg Watson 2003-12-17 17:39:53 +00:00
parent 8549836ef4
commit 5965169dad
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ struct device *dev_find_class(unsigned int class, struct device *from)
from = all_devices; from = all_devices;
else else
from = from->next; from = from->next;
while (from && from->class != class) while (from && (from->class & 0xffffff00) != class)
from = from->next; from = from->next;
return from; return from;
} }