mmc: atmel-mci: fix bad variable type for clkdiv
authorLudovic Desroches <ludovic.desroches@atmel.com>
Wed, 6 May 2015 13:16:46 +0000 (15:16 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 18 May 2015 07:04:42 +0000 (09:04 +0200)
commit60c8f783a18feb95ad967c87e9660caf09fb4700
tree11da018d6c00c891e59a37cb6f83867fad098642
parent030bbdbf4c833bc69f502eae58498bc5572db736
mmc: atmel-mci: fix bad variable type for clkdiv

clkdiv is declared as an u32 but it can be set to a negative value
causing a huge divisor value. Change its type to int to avoid this case.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Cc: <stable@vger.kernel.org> # 3.4 and later
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/atmel-mci.c