tg3: Detect APE enabled devs earlier
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 13 Jul 2011 09:27:27 +0000 (09:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Jul 2011 15:41:58 +0000 (08:41 -0700)
commitc9cab24e954867a03ab833ea3b4c0e6e607eb0d6
tree29c04653c4cfaa36feee3db4e6177886b34a54e8
parentcc9f01b246ca8e4fa245991840b8076394f86707
tg3: Detect APE enabled devs earlier

The following patch will require the driver to communicate with the APE
much sooner than before.  This patch make sure the APE registers are
memory mapped and that the ENABLE_APE bit is set before the first use.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c