浏览代码

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: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Colin Ian King 9 年之前
父节点
当前提交
f0e00da2db
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/staging/sm750fb/ddk750_chip.c

+ 1 - 1
drivers/staging/sm750fb/ddk750_chip.c

@@ -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.