diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-12-02 15:44:03 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-12-02 15:44:03 -0500 |
commit | d7a4858c0fde8383f7aa494eda0fba6bef3f2fec (patch) | |
tree | 2cbf6915ea069ada4e3e1bca0b91b12e06500681 /drivers/net/wireless/p54 | |
parent | ba5736a5e9ac20c378ae4179e8a0ed3cc4b44351 (diff) | |
parent | 9995ffe5f5fdddcc73e4465cc3f8b38714df8108 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
Conflicts:
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/libertas/cfg.c
Diffstat (limited to 'drivers/net/wireless/p54')
-rw-r--r-- | drivers/net/wireless/p54/p54spi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/p54/p54spi.c b/drivers/net/wireless/p54/p54spi.c index 546551389a1d..7faed62c6378 100644 --- a/drivers/net/wireless/p54/p54spi.c +++ b/drivers/net/wireless/p54/p54spi.c | |||
@@ -584,8 +584,6 @@ static void p54spi_op_stop(struct ieee80211_hw *dev) | |||
584 | mutex_lock(&priv->mutex); | 584 | mutex_lock(&priv->mutex); |
585 | WARN_ON(priv->fw_state != FW_STATE_READY); | 585 | WARN_ON(priv->fw_state != FW_STATE_READY); |
586 | 586 | ||
587 | cancel_work_sync(&priv->work); | ||
588 | |||
589 | p54spi_power_off(priv); | 587 | p54spi_power_off(priv); |
590 | spin_lock_irqsave(&priv->tx_lock, flags); | 588 | spin_lock_irqsave(&priv->tx_lock, flags); |
591 | INIT_LIST_HEAD(&priv->tx_pending); | 589 | INIT_LIST_HEAD(&priv->tx_pending); |
@@ -593,6 +591,8 @@ static void p54spi_op_stop(struct ieee80211_hw *dev) | |||
593 | 591 | ||
594 | priv->fw_state = FW_STATE_OFF; | 592 | priv->fw_state = FW_STATE_OFF; |
595 | mutex_unlock(&priv->mutex); | 593 | mutex_unlock(&priv->mutex); |
594 | |||
595 | cancel_work_sync(&priv->work); | ||
596 | } | 596 | } |
597 | 597 | ||
598 | static int __devinit p54spi_probe(struct spi_device *spi) | 598 | static int __devinit p54spi_probe(struct spi_device *spi) |
@@ -652,6 +652,7 @@ static int __devinit p54spi_probe(struct spi_device *spi) | |||
652 | init_completion(&priv->fw_comp); | 652 | init_completion(&priv->fw_comp); |
653 | INIT_LIST_HEAD(&priv->tx_pending); | 653 | INIT_LIST_HEAD(&priv->tx_pending); |
654 | mutex_init(&priv->mutex); | 654 | mutex_init(&priv->mutex); |
655 | spin_lock_init(&priv->tx_lock); | ||
655 | SET_IEEE80211_DEV(hw, &spi->dev); | 656 | SET_IEEE80211_DEV(hw, &spi->dev); |
656 | priv->common.open = p54spi_op_start; | 657 | priv->common.open = p54spi_op_start; |
657 | priv->common.stop = p54spi_op_stop; | 658 | priv->common.stop = p54spi_op_stop; |