mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
spi/amba-pl022: fixing compilation warning.
clk_freq is used uninitialized in pl022_setup routine. This patch fix compilation warning for using uninitialized variable Signed-off-by: Viresh Kumar <[email protected]> Acked-by: Linus Walleij <[email protected]> Signed-off-by: Grant Likely <[email protected]>
This commit is contained in:
parent
42a9fa9957
commit
94a1b6d8eb
1 changed files with 1 additions and 1 deletions
|
|
@ -1795,7 +1795,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;
|
||||
struct ssp_clock_params clk_freq = {0, };
|
||||
int status = 0;
|
||||
struct pl022 *pl022 = spi_master_get_devdata(spi->master);
|
||||
unsigned int bits = spi->bits_per_word;
|
||||
|
|
|
|||
Loading…
Reference in a new issue