staging: sm750fb: initialize max_d to maximum D value of 6
authorColin Ian King <colin.king@canonical.com>
Tue, 29 Mar 2016 16:53:23 +0000 (17:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Mar 2016 21:41:15 +0000 (14:41 -0700)
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>
drivers/staging/sm750fb/ddk750_chip.c

index 95f7cae3cc238629cffd043d13678f23e0381023..f80ee776677fcebd5ca23e7eca0bf7be443b9211 100644 (file)
@@ -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.