staging: xgifb: XGIfb_mode_rate_to_dclock: initialize ModeIdIndex properly
authorAaro Koskinen <aaro.koskinen@iki.fi>
Fri, 6 Apr 2012 22:13:50 +0000 (01:13 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Apr 2012 16:55:09 +0000 (09:55 -0700)
commitaca03bcc29b5848206985446a496f683fcccb268
treedef0aab4472c14dabf3085029d3f1080f31c9bb6
parente484975a2321ec6e86fa4b0e02f2b61875b67e2b
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>
drivers/staging/xgifb/XGI_main_26.c