aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2010-10-14 01:03:15 -0400
committerGrant Likely <grant.likely@secretlab.ca>2010-10-14 01:03:15 -0400
commit8e41b527ff2c1d7d8c9a9e8b9f53877af2892cef (patch)
tree3c788a88f344aacd9ce007b5c7eb88a983633ee4 /drivers/spi
parentf3016fa591c788d6d545ef7907e24c8b5d788759 (diff)
spi/topcliff: Fix uninitialized variable defect
This patch fixes the following build error introduced by commit 65308c46, "spi/topcliff: cleanup for style and conciseness". drivers/spi/spi_topcliff_pch.c: In function 'pch_spi_process_messages': drivers/spi/spi_topcliff_pch.c:752: warning: 'data' is used uninitialized in +this function Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi_topcliff_pch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi_topcliff_pch.c b/drivers/spi/spi_topcliff_pch.c
index 97746232741e..58e187f45ec7 100644
--- a/drivers/spi/spi_topcliff_pch.c
+++ b/drivers/spi/spi_topcliff_pch.c
@@ -749,8 +749,8 @@ static void pch_spi_process_messages(struct work_struct *pwork)
749 struct pch_spi_data *data; 749 struct pch_spi_data *data;
750 int bpw; 750 int bpw;
751 751
752 dev_dbg(&data->master->dev, "%s data initialized\n", __func__);
753 data = container_of(pwork, struct pch_spi_data, work); 752 data = container_of(pwork, struct pch_spi_data, work);
753 dev_dbg(&data->master->dev, "%s data initialized\n", __func__);
754 754
755 spin_lock(&data->lock); 755 spin_lock(&data->lock);
756 756