Commit 39a28bc4 authored by Ron Mercer's avatar Ron Mercer Committed by David S. Miller

qlge: Remove spinlock from asic init path.

There is nothing to contend with it.
Signed-off-by: default avatarRon Mercer <ron.mercer@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b25215d0
...@@ -3250,14 +3250,12 @@ static int ql_adapter_up(struct ql_adapter *qdev) ...@@ -3250,14 +3250,12 @@ static int ql_adapter_up(struct ql_adapter *qdev)
{ {
int err = 0; int err = 0;
spin_lock(&qdev->hw_lock);
err = ql_adapter_initialize(qdev); err = ql_adapter_initialize(qdev);
if (err) { if (err) {
QPRINTK(qdev, IFUP, INFO, "Unable to initialize adapter.\n"); QPRINTK(qdev, IFUP, INFO, "Unable to initialize adapter.\n");
spin_unlock(&qdev->hw_lock); spin_unlock(&qdev->hw_lock);
goto err_init; goto err_init;
} }
spin_unlock(&qdev->hw_lock);
set_bit(QL_ADAPTER_UP, &qdev->flags); set_bit(QL_ADAPTER_UP, &qdev->flags);
ql_alloc_rx_buffers(qdev); ql_alloc_rx_buffers(qdev);
if ((ql_read32(qdev, STS) & qdev->port_init)) if ((ql_read32(qdev, STS) & qdev->port_init))
......
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