diff options
author | Viresh Kumar <viresh.kumar@st.com> | 2011-01-13 06:54:22 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-01-14 17:26:07 -0500 |
commit | 94a1b6d8eb903818773ad24fe48529b0d295052d (patch) | |
tree | 4fbb7137b2435fbb4ad42c5b13ec6d9ba2acc10d /drivers/spi | |
parent | 42a9fa9957e369240936891c9a521ab671eed4e7 (diff) |
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 <viresh.kumar@st.com>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/amba-pl022.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
1795 | { | 1795 | { |
1796 | struct pl022_config_chip const *chip_info; | 1796 | struct pl022_config_chip const *chip_info; |
1797 | struct chip_data *chip; | 1797 | struct chip_data *chip; |
1798 | struct ssp_clock_params clk_freq; | 1798 | struct ssp_clock_params clk_freq = {0, }; |
1799 | int status = 0; | 1799 | int status = 0; |
1800 | struct pl022 *pl022 = spi_master_get_devdata(spi->master); | 1800 | struct pl022 *pl022 = spi_master_get_devdata(spi->master); |
1801 | unsigned int bits = spi->bits_per_word; | 1801 | unsigned int bits = spi->bits_per_word; |