diff options
author | Michael Büsch <m@bues.ch> | 2011-11-16 23:48:31 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-17 14:39:32 -0500 |
commit | 32d3a3922d617a5a685a5e2d24b20d0e88f192a9 (patch) | |
tree | a7ea1bb1c7c9c4b00aad1e8b12691f4bc5fc596c /drivers/net/wireless/p54 | |
parent | 68fa64ef606bcee688fce46d07aa68f175070156 (diff) | |
download | talos-obmc-linux-32d3a3922d617a5a685a5e2d24b20d0e88f192a9.tar.gz talos-obmc-linux-32d3a3922d617a5a685a5e2d24b20d0e88f192a9.zip |
p54spi: Add missing spin_lock_init
The tx_lock is not initialized properly. Add spin_lock_init().
Signed-off-by: Michael Buesch <m@bues.ch>
Cc: <stable@vger.kernel.org>
Acked-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54')
-rw-r--r-- | drivers/net/wireless/p54/p54spi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/p54/p54spi.c b/drivers/net/wireless/p54/p54spi.c index f18df82eeb92..dda97c54d28f 100644 --- a/drivers/net/wireless/p54/p54spi.c +++ b/drivers/net/wireless/p54/p54spi.c @@ -656,6 +656,7 @@ static int __devinit p54spi_probe(struct spi_device *spi) init_completion(&priv->fw_comp); INIT_LIST_HEAD(&priv->tx_pending); mutex_init(&priv->mutex); + spin_lock_init(&priv->tx_lock); SET_IEEE80211_DEV(hw, &spi->dev); priv->common.open = p54spi_op_start; priv->common.stop = p54spi_op_stop; |