spi/pl022: fix build warnings
Subsystems (2)
PATCH 2/6 spi/pl022: fix build warnings
From: Jonas Aaberg <[email protected]>
The driver build complains with newer compilers unless you initialize this struct properly.
Signed-off-by Jonas Aaberg <[email protected]>
Signed-off-by Linus Walleij <[email protected]>
--- drivers/spi/spi-pl022.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/spi/spi-pl022.c +1 -1
@@ -1885,7 +1885,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;
Signature · 1 line
1.7.3.2
PATCH 2/6 spi/pl022: fix build warnings
Quoted 16 lines · Linus WALLEIJ
From: Jonas Aaberg <[email protected]>
The driver build complains with newer compilers unless you initialize this struct properly.
Signed-off-by Jonas Aaberg <[email protected]>Signed-off-by Linus Walleij <[email protected]>--- drivers/spi/spi-pl022.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/spi/spi-pl022.c +0
-0
drivers/spi/spi-pl022.c static int pl022_setup(struct spi_device *spi) · line 1891
Quoted 8 lines
drivers/spi/spi-pl022.c +1
-1@@ -1885,7 +1885,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;
Reviewed-by Viresh Kumar <[email protected]>
Signature · 1 line
viresh