summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJonas Aaberg <jonas.aberg@stericsson.com>2011-02-28 16:42:41 +0100
committerRabin VINCENT <rabin.vincent@stericsson.com>2011-10-24 09:16:23 +0200
commite6d1e0f8b1f5201ef0c6d218077744186d1dd783 (patch)
tree945d5310b29a40e6b982d382b5571417413fe9e8 /drivers
parent742a07fde67d0ccf1e1f66572f9c135203fcbcac (diff)
spi/pl022: fix build warnings
The driver build complains with newer compilers unless you initialize this struct properly. Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Change-Id: Id297b0a9c9cd3fe600b4dbfb1c1f0e7e1c1fcc66 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35017 Reviewed-by: Avinash A <avinash.a@stericsson.com> Tested-by: Avinash A <avinash.a@stericsson.com> Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/spi/spi-pl022.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c
index 1a76aa9e650..0a859db5ac0 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)
{
struct pl022_config_chip const *chip_info;
struct chip_data *chip;
- struct ssp_clock_params clk_freq = {0, };
+ struct ssp_clock_params clk_freq = { .cpsdvsr = 0, .scr = 0};
int status = 0;
struct pl022 *pl022 = spi_master_get_devdata(spi->master);
unsigned int bits = spi->bits_per_word;