summaryrefslogtreecommitdiffstats
path: root/drivers/net/qlge/qlge_ethtool.c
diff options
context:
space:
mode:
authorRon Mercer <ron.mercer@qlogic.com>2009-10-05 11:46:49 +0000
committerDavid S. Miller <davem@davemloft.net>2009-10-06 17:33:37 -0700
commit86aaf9ad8276160312c09771c0f8e64646996e4c (patch)
treec1516a6658a9593f288c0f328d4de9a3485407db /drivers/net/qlge/qlge_ethtool.c
parent5ee22a5aa9cd85527b93b24402db9ae2567d5aa6 (diff)
downloadlinux-86aaf9ad8276160312c09771c0f8e64646996e4c.tar.gz
linux-86aaf9ad8276160312c09771c0f8e64646996e4c.tar.bz2
linux-86aaf9ad8276160312c09771c0f8e64646996e4c.zip
qlge: Fix lock/mutex warnings.
Get rid of spinlock and private mutex usage for exclusive access to the HW semaphore register. rtnl_lock already creates exclusive access to this register in all driver API. Add rtnl to firmware worker threads that also use the HW semaphore register. Signed-off-by: Ron Mercer <ron.mercer@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlge/qlge_ethtool.c')
-rw-r--r--drivers/net/qlge/qlge_ethtool.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/qlge/qlge_ethtool.c b/drivers/net/qlge/qlge_ethtool.c
index 68f9bd280f86..52073946bce3 100644
--- a/drivers/net/qlge/qlge_ethtool.c
+++ b/drivers/net/qlge/qlge_ethtool.c
@@ -45,7 +45,6 @@ static int ql_update_ring_coalescing(struct ql_adapter *qdev)
if (!netif_running(qdev->ndev))
return status;
- spin_lock(&qdev->hw_lock);
/* Skip the default queue, and update the outbound handler
* queues if they changed.
*/
@@ -92,7 +91,6 @@ static int ql_update_ring_coalescing(struct ql_adapter *qdev)
}
}
exit:
- spin_unlock(&qdev->hw_lock);
return status;
}