start rewrite of pci_find_classcode

was scanning PCI config space of all valid slot/bus combination when all needed information is already available from the initial scan.
This commit is contained in:
Markus Fröschle
2016-12-05 07:03:16 +00:00
parent 486bc3f063
commit be9e859ee6
8 changed files with 52 additions and 81 deletions

View File

@@ -1982,7 +1982,7 @@ int radeonfb_set_par(struct fb_info *info)
#endif
memcpy(&rinfo->state, newmode, sizeof(*newmode));
#ifdef RADEON_TILING
rinfo->tilingEnabled = (mode->vmode & (FB_VMODE_DOUBLE | FB_VMODE_INTERLACED)) ? FALSE : TRUE;
rinfo->tilingEnabled = (mode->vmode & (FB_VMODE_DOUBLE | FB_VMODE_INTERLACED)) ? false : true;
#endif
radeon_write_mode(rinfo, newmode, 0);
/* (re)initialize the engine */