igb: add function to handle mailbox lock
authorAlexander Duyck <alexander.h.duyck@intel.com>
Mon, 5 Oct 2009 06:33:46 +0000 (06:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Oct 2009 21:59:20 +0000 (14:59 -0700)
commit0acb6fde5fc84009be1c7efc0aaa8e69e394a2e2
tree266ae1b7b50bac51992a0ca4b7605949b0dde192
parent747d49baaf4e3f4ad5ae77477830da026eeef69d
igb: add function to handle mailbox lock

Both the read and write mailbox functions need to acquire the mailbox lock.
Since that is the case we might as well combine both of the procedures into
one function so it is easier to maintain.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/igb/e1000_mbx.c