diff options
author | Sri Krishna chowdary <schowdary@nvidia.com> | 2012-09-26 09:13:47 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 01:13:01 -0700 |
commit | 204c1fac7c030e0512882b795839ee9996b41431 (patch) | |
tree | 4cdac0296bf38e60df226dc378e64c97f0248c23 /drivers/spi | |
parent | 0b2dc044d3d812f26e3267e1e6b9d53281b47f3a (diff) |
spi: tegra: Treat Warning as Error
Fix coverity issue.
Adding flag to treat compile warnings as errors.
Bug 1046331
Change-Id: Ib6c1c8956d7a8bac1ef1d64dd58313e878877cc1
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/138811
Reviewed-by: Amit Kamath <akamath@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Rebase-Id: R1a5458c99d480333a0263f79d5294e3ca22a8ac6
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/Makefile | 1 | ||||
-rw-r--r-- | drivers/spi/spi-tegra11.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/spi/Makefile b/drivers/spi/Makefile index f9329671a5e2..0e2d1ae207cf 100644 --- a/drivers/spi/Makefile +++ b/drivers/spi/Makefile @@ -67,6 +67,7 @@ obj-$(CONFIG_SPI_SH_SCI) += spi-sh-sci.o obj-$(CONFIG_SPI_SIRF) += spi-sirf.o obj-$(CONFIG_SPI_TEGRA20_SFLASH) += spi-tegra20-sflash.o obj-$(CONFIG_SPI_TEGRA20_SLINK) += spi-tegra20-slink.o +CFLAGS_spi-tegra11.o = -Werror obj-$(CONFIG_SPI_TEGRA) += spi-tegra11.o obj-$(CONFIG_SPI_TI_SSP) += spi-ti-ssp.o obj-$(CONFIG_SPI_TLE62X0) += spi-tle62x0.o diff --git a/drivers/spi/spi-tegra11.c b/drivers/spi/spi-tegra11.c index f03df900fd55..a37f1ddef758 100644 --- a/drivers/spi/spi-tegra11.c +++ b/drivers/spi/spi-tegra11.c @@ -401,7 +401,7 @@ static unsigned int spi_tegra_read_rx_fifo_to_client_rxbuf( u8 *rx_buf = (u8 *)t->rx_buf + tspi->cur_rx_pos; unsigned i, count; unsigned long x; - unsigned int read_words; + unsigned int read_words = 0; unsigned len; fifo_status = spi_tegra_readl(tspi, SPI_FIFO_STATUS); @@ -639,7 +639,7 @@ static int spi_tegra_data_settings(struct spi_device *spi, { struct spi_tegra_data *tspi = spi_master_get_devdata(spi->master); unsigned long val; - u32 bits_per_word; + u32 bits_per_word = 0; if (t->bits_per_word || spi->bits_per_word) bits_per_word = t->bits_per_word ? t->bits_per_word : |