]> git.baikalelectronics.ru Git - kernel.git/commit
staging: xgifb: XGIfb_mode_rate_to_ddata: initialize ModeIdIndex properly
authorAaro Koskinen <aaro.koskinen@iki.fi>
Fri, 6 Apr 2012 22:13:48 +0000 (01:13 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Apr 2012 16:55:09 +0000 (09:55 -0700)
commitc529ca69ae46843170206e79c60ed94699239d6b
tree79d98e9a2655c25137bb744bbd9db8b55dd52728
parent7e38ea680880a9aff4374de2bc4a5b45e1530abc
staging: xgifb: XGIfb_mode_rate_to_ddata: initialize ModeIdIndex properly

Initialize ModeIdIndex according to the selected video mode. Currently
index 0 is always used and wrong video mode data may be used.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/XGI_main_26.c