From: Viresh Kumar Date: Thu, 13 Jan 2011 11:54:22 +0000 (+0530) Subject: spi/amba-pl022: fixing compilation warning. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=94a1b6d8eb903818773ad24fe48529b0d295052d;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git spi/amba-pl022: fixing compilation warning. clk_freq is used uninitialized in pl022_setup routine. This patch fix compilation warning for using uninitialized variable Signed-off-by: Viresh Kumar Acked-by: Linus Walleij Signed-off-by: Grant Likely --- diff --git a/drivers/spi/amba-pl022.c b/drivers/spi/amba-pl022.c index a2a5921c730a..71a1219a995d 100644 --- a/drivers/spi/amba-pl022.c +++ b/drivers/spi/amba-pl022.c @@ -1795,7 +1795,7 @@ static int pl022_setup(struct spi_device *spi) { struct pl022_config_chip const *chip_info; struct chip_data *chip; - struct ssp_clock_params clk_freq; + struct ssp_clock_params clk_freq = {0, }; int status = 0; struct pl022 *pl022 = spi_master_get_devdata(spi->master); unsigned int bits = spi->bits_per_word;