Bnx2x: remove redundant D0 power state set
authorYijing Wang <wangyijing@huawei.com>
Tue, 18 Jun 2013 08:05:39 +0000 (16:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Jun 2013 05:22:56 +0000 (22:22 -0700)
commitb8a39dd292af453f42ebcdbad229f7d9d1282ec2
tree83f375fa74ab9e1e6ad3dd63fd136087781250ad
parent2206209e758e3d930a550bacfc0db6303e2df6bd
Bnx2x: remove redundant D0 power state set

Pci_enable_device() will set device power state to D0,
so it's no need to do it again in bnx2x_init_dev().
Also remove redundant PM Cap find code, because pci core
has been saved the pci device pm cap value.

Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Cc: Eilon Greenstein <eilong@broadcom.com>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Acked-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c