diff options
author | Matthias Kaehlcke <matthias@kaehlcke.net> | 2008-02-15 14:56:59 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-29 15:37:17 -0500 |
commit | f8139218b32e9a68fc6779fa0ce45c5078c23c8a (patch) | |
tree | a469cc72903dc998fce586e27fed863ea3c81449 /drivers/net/wireless/prism54/islpci_dev.c | |
parent | 6f865c0ab9318cd4c357654e460cb4c9aaf23a92 (diff) |
prism54: Convert stats_sem in a mutex
The semaphore stats_sem is used as mutex, convert it to the mutex API
Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Acked-by: Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/prism54/islpci_dev.c')
-rw-r--r-- | drivers/net/wireless/prism54/islpci_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/prism54/islpci_dev.c b/drivers/net/wireless/prism54/islpci_dev.c index dbb538ccb4ec..eb7c1c6bcd8a 100644 --- a/drivers/net/wireless/prism54/islpci_dev.c +++ b/drivers/net/wireless/prism54/islpci_dev.c | |||
@@ -864,7 +864,7 @@ islpci_setup(struct pci_dev *pdev) | |||
864 | mutex_init(&priv->mgmt_lock); | 864 | mutex_init(&priv->mgmt_lock); |
865 | priv->mgmt_received = NULL; | 865 | priv->mgmt_received = NULL; |
866 | init_waitqueue_head(&priv->mgmt_wqueue); | 866 | init_waitqueue_head(&priv->mgmt_wqueue); |
867 | sema_init(&priv->stats_sem, 1); | 867 | mutex_init(&priv->stats_lock); |
868 | spin_lock_init(&priv->slock); | 868 | spin_lock_init(&priv->slock); |
869 | 869 | ||
870 | /* init state machine with off#1 state */ | 870 | /* init state machine with off#1 state */ |