Commit cd42f5dd authored by Michael Büsch's avatar Michael Büsch Committed by Greg Kroah-Hartman

p54spi: Add missing spin_lock_init

commit 32d3a392 upstream.

The tx_lock is not initialized properly. Add spin_lock_init().
Signed-off-by: default avatarMichael Buesch <m@bues.ch>
Acked-by: default avatarChristian Lamparter <chunkeey@googlemail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5c3e9f55
...@@ -650,6 +650,7 @@ static int __devinit p54spi_probe(struct spi_device *spi) ...@@ -650,6 +650,7 @@ static int __devinit p54spi_probe(struct spi_device *spi)
init_completion(&priv->fw_comp); init_completion(&priv->fw_comp);
INIT_LIST_HEAD(&priv->tx_pending); INIT_LIST_HEAD(&priv->tx_pending);
mutex_init(&priv->mutex); mutex_init(&priv->mutex);
spin_lock_init(&priv->tx_lock);
SET_IEEE80211_DEV(hw, &spi->dev); SET_IEEE80211_DEV(hw, &spi->dev);
priv->common.open = p54spi_op_start; priv->common.open = p54spi_op_start;
priv->common.stop = p54spi_op_stop; priv->common.stop = p54spi_op_stop;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment