mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
staging: xgifb: XGIfb_mode_rate_to_dclock: initialize ModeIdIndex properly
Initialize ModeIdIndex according to the selected video mode. Currently index 0 is always used and wrong clock data may be used. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e484975a23
commit
aca03bcc29
@ -159,6 +159,8 @@ static int XGIfb_mode_rate_to_dclock(struct vb_device_info *XGI_Pr,
|
||||
int Clock;
|
||||
InitTo330Pointer(HwDeviceExtension->jChipType, XGI_Pr);
|
||||
|
||||
XGI_SearchModeID(ModeNo, &ModeIdIndex, XGI_Pr);
|
||||
|
||||
RefreshRateTableIndex = XGI_GetRatePtrCRT2(HwDeviceExtension, ModeNo,
|
||||
ModeIdIndex, XGI_Pr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user