From: Yijing Wang Date: Thu, 30 May 2013 00:26:09 +0000 (+0000) Subject: qlcnic: remove redundant D0 power state set X-Git-Tag: v3.11-rc1~16^2~243 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e4afed373eefb91a80e69075fbcd5438c2d36283;p=platform%2Fkernel%2Flinux-exynos.git qlcnic: 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 qlcnic_attach_func(). Signed-off-by: Yijing Wang Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c index 6bb56d4..0ae8835 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c @@ -3232,7 +3232,6 @@ static int qlcnic_attach_func(struct pci_dev *pdev) if (err) return err; - pci_set_power_state(pdev, PCI_D0); pci_set_master(pdev); pci_restore_state(pdev);