diff options
author | Jonas Aaberg <jonas.aberg@stericsson.com> | 2011-02-28 10:42:41 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2011-12-01 11:16:07 -0500 |
commit | c4a4784308f5cb86ef3c6c1288524ecb63c1fc87 (patch) | |
tree | cc14bdc395382329ea00cf91889caba2e62def4f /drivers/spi/spi-pl022.c | |
parent | 172289df4004cccf798316b19cc3e6284dbe901f (diff) |
spi/pl022: fix build warnings
The driver build complains with newer compilers unless you
initialize this struct properly.
Reviewed-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/spi/spi-pl022.c')
-rw-r--r-- | drivers/spi/spi-pl022.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index 5b7209f9f100..0d0b16541d94 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c | |||
@@ -1886,7 +1886,7 @@ static int pl022_setup(struct spi_device *spi) | |||
1886 | { | 1886 | { |
1887 | struct pl022_config_chip const *chip_info; | 1887 | struct pl022_config_chip const *chip_info; |
1888 | struct chip_data *chip; | 1888 | struct chip_data *chip; |
1889 | struct ssp_clock_params clk_freq = {0, }; | 1889 | struct ssp_clock_params clk_freq = { .cpsdvsr = 0, .scr = 0}; |
1890 | int status = 0; | 1890 | int status = 0; |
1891 | struct pl022 *pl022 = spi_master_get_devdata(spi->master); | 1891 | struct pl022 *pl022 = spi_master_get_devdata(spi->master); |
1892 | unsigned int bits = spi->bits_per_word; | 1892 | unsigned int bits = spi->bits_per_word; |