igb: initialize mailbox function pointers prior to phy init
authorAlexander Duyck <alexander.h.duyck@intel.com>
Thu, 23 Jul 2009 18:10:43 +0000 (18:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 Jul 2009 16:47:03 +0000 (09:47 -0700)
commita0c98605d7237fc4bf26a345db5f950f46e69834
tree219d3f0f7b2ae5fce5957fe28679a427a6ba1f11
parent0cce119aa977dba00467985c0ae93fe43d28740a
igb: initialize mailbox function pointers prior to phy init

The igb driver is currently initializing the mailbox function pointers
after the phy.  This causes issues as the phy init will return from the
function early if there is no phy present.

To resolve this I have moved the function pointer init to a location prior
to the phy initialization so that serdes based adapters can also make use
of SR-IOV.

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_82575.c