summaryrefslogtreecommitdiffstats
path: root/drivers/net/qlge/qlge_main.c
diff options
context:
space:
mode:
authorRon Mercer <ron.mercer@qlogic.com>2009-02-26 10:08:34 +0000
committerDavid S. Miller <davem@davemloft.net>2009-02-26 22:28:08 -0800
commit125844eaff0e9600c92a753995564fd93c807f3c (patch)
tree5549acecb41c61bec9e2c471b1e3ef2d4b9e9d91 /drivers/net/qlge/qlge_main.c
parenta2e809bb1b2174af66bf9798444f7e90892f45a9 (diff)
downloadop-kernel-dev-125844eaff0e9600c92a753995564fd93c807f3c.zip
op-kernel-dev-125844eaff0e9600c92a753995564fd93c807f3c.tar.gz
qlge: Move firmware event handler.
This is not a logical change but rather a move of the inbound firmware event handler into it's own function as it will later be called by the outbound path. The addition of the mutex is to create exclusive access to the mailbox commands between inbound and outbound handling. 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_main.c')
-rw-r--r--drivers/net/qlge/qlge_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c
index 655f3c4..b144b6b 100644
--- a/drivers/net/qlge/qlge_main.c
+++ b/drivers/net/qlge/qlge_main.c
@@ -3659,6 +3659,7 @@ static int __devinit ql_init_device(struct pci_dev *pdev,
INIT_DELAYED_WORK(&qdev->asic_reset_work, ql_asic_reset_work);
INIT_DELAYED_WORK(&qdev->mpi_reset_work, ql_mpi_reset_work);
INIT_DELAYED_WORK(&qdev->mpi_work, ql_mpi_work);
+ mutex_init(&qdev->mpi_mutex);
if (!cards_found) {
dev_info(&pdev->dev, "%s\n", DRV_STRING);
OpenPOWER on IntegriCloud