Commit f0e00da2 authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman

staging: sm750fb: initialize max_d to maximum D value of 6

max_d is not initialized and should be set to the largest D
value of 6.
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7d47383d
...@@ -306,7 +306,7 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll) ...@@ -306,7 +306,7 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll)
unsigned int input, request; unsigned int input, request;
unsigned int tmpClock, ret; unsigned int tmpClock, ret;
const int max_OD = 3; const int max_OD = 3;
int max_d; int max_d = 6;
if (getChipType() == SM750LE) { if (getChipType() == SM750LE) {
/* SM750LE don't have prgrammable PLL and M/N values to work on. /* SM750LE don't have prgrammable PLL and M/N values to work on.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment