[AGPGART] Don't scan whole bus for a VGA card.
Use the handy pci_get_class() function instead of implementing our own
pci bus walking loop. Also makes it skip non-VGA devices fixing up a
long-standing FIXME. Previously, it may have been tripping up on AGP
bridges, which could have caused all sorts of sillyness.
Signed-off-by: Dave Jones <davej@redhat.com>
Showing
Please register or sign in to comment