DORMANTno replies REVIEWED: 1 (0M)

1 review trailer.

[PATCH 2/7] spi/pl022: fix build warnings

From: Linus Walleij <hidden>
Date: 2011-11-22 08:24:42
Also in: linux-spi
Subsystem: arm primecell ssp pl022 spi driver, spi subsystem, the rest · Maintainers: Linus Walleij, Mark Brown, Linus Torvalds

From: Jonas Aaberg <redacted>

The driver build complains with newer compilers unless you
initialize this struct properly.

Reviewed-by: Viresh Kumar <redacted>
Signed-off-by: Jonas Aaberg <redacted>
Signed-off-by: Linus Walleij <redacted>
---
ChangeLog v1->v2:
- Add Viresh's Reviewed-by
---
 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 5b7209f..0d0b165 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;
-- 
1.7.3.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help