diff options
Diffstat (limited to 'sys/dev/fb/vesa.c')
-rw-r--r-- | sys/dev/fb/vesa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fb/vesa.c b/sys/dev/fb/vesa.c index 36b05f84bacf..13f03f76272d 100644 --- a/sys/dev/fb/vesa.c +++ b/sys/dev/fb/vesa.c @@ -250,8 +250,8 @@ vesa_bios_post(void) dc = devclass_find("vgapci"); if (dc != NULL && devclass_get_devices(dc, &devs, &count) == 0) { for (dev = NULL, i = 0; dev == NULL && i < count; devs++, i++) - if (x86bios_match_device(0xc0000, *devs) && - device_get_flags(*devs) != 0) { + if (device_get_flags(*devs) != 0 && + x86bios_match_device(0xc0000, *devs)) { dev = *devs; is_pci = 1; break; |