Prism54: Convert mgmt_sem to the mutex API
Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
David S. Miller

parent
1e3428e9e3
commit
1b34fd390c
@@ -460,7 +460,7 @@ islpci_mgt_transaction(struct net_device *ndev,
|
||||
|
||||
*recvframe = NULL;
|
||||
|
||||
if (down_interruptible(&priv->mgmt_sem))
|
||||
if (mutex_lock_interruptible(&priv->mgmt_lock))
|
||||
return -ERESTARTSYS;
|
||||
|
||||
prepare_to_wait(&priv->mgmt_wqueue, &wait, TASK_UNINTERRUPTIBLE);
|
||||
@@ -504,7 +504,7 @@ islpci_mgt_transaction(struct net_device *ndev,
|
||||
/* TODO: we should reset the device here */
|
||||
out:
|
||||
finish_wait(&priv->mgmt_wqueue, &wait);
|
||||
up(&priv->mgmt_sem);
|
||||
mutex_unlock(&priv->mgmt_lock);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user