Skip to content

Commit

Permalink
spi/pl022: fix build warnings
Browse files Browse the repository at this point in the history
The driver build complains with newer compilers unless you
initialize this struct properly.

Reviewed-by: Viresh Kumar <[email protected]>
Signed-off-by: Jonas Aaberg <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
  • Loading branch information
Jonas Aaberg authored and linusw committed Dec 1, 2011
1 parent 172289d commit c4a4784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi-pl022.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c4a4784

Please sign in to comment.