From: Colin Ian King Date: Tue, 29 Mar 2016 16:53:23 +0000 (+0100) Subject: staging: sm750fb: initialize max_d to maximum D value of 6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f0e00da2db61c9052fbc07edf2b2bf615b7a4bbe;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c index 95f7cae3cc23..f80ee776677f 100644 --- a/drivers/staging/sm750fb/ddk750_chip.c +++ b/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 tmpClock, ret; const int max_OD = 3; - int max_d; + int max_d = 6; if (getChipType() == SM750LE) { /* SM750LE don't have prgrammable PLL and M/N values to work on.