bnx2x: fix a power state test
authorYuval Mintz <yuvalmin@broadcom.com>
Sat, 1 Jun 2013 23:02:26 +0000 (23:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jun 2013 04:39:29 +0000 (21:39 -0700)
commit829a5071ccf040b78bd93286a218580c66833b00
tree02a0660743a74d24d052faddd2c500edeec522fb
parent639d65b85592cf31eca24f33ff00e309ebbf0d2b
bnx2x: fix a power state test

If PCIe supports PM capabilities, bnx2x will always claim eeprom is accessible
as PCI_D0 is zero.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c