summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-tegra.c
diff options
context:
space:
mode:
authorKunal Agrawal <kunala@nvidia.com>2012-09-14 14:24:18 +0530
committerSimone Willett <swillett@nvidia.com>2012-10-03 14:51:13 -0700
commit153f938a0f9f7182bffc0fe2339182e35eda933a (patch)
treec8bd001bae9145fb16a43b2e5b9f0d524e488560 /drivers/spi/spi-tegra.c
parenteb312b860b2b78c5b074aeb4fc959b51b0dfa0d5 (diff)
spi: tegra: Fix uninitialized variable
The function spi_tegra_resume has an uninitialized variable "spi" that causes a build failure.Initialized it to NULL. Bug 1040319 Change-Id: Ia1d29da487f7da3626951a811db997632f7e27f8 Signed-off-by: Kunal Agrawal <kunala@nvidia.com> Reviewed-on: http://git-master/r/132583 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'drivers/spi/spi-tegra.c')
-rw-r--r--drivers/spi/spi-tegra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-tegra.c b/drivers/spi/spi-tegra.c
index 5006ca975897..309ddf20ac4c 100644
--- a/drivers/spi/spi-tegra.c
+++ b/drivers/spi/spi-tegra.c
@@ -1583,7 +1583,7 @@ static int spi_tegra_resume(struct device *dev)
struct spi_master *master = dev_get_drvdata(dev);
struct spi_tegra_data *tspi = spi_master_get_devdata(master);
struct spi_message *m;
- struct spi_device *spi;
+ struct spi_device *spi = NULL;
struct spi_transfer *t = NULL;
int single_xfer = 0;
unsigned long flags;