summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorYijing Wang <wangyijing@huawei.com>2013-05-30 04:26:09 +0400
committerDavid S. Miller <davem@davemloft.net>2013-05-31 12:39:08 +0400
commite4afed373eefb91a80e69075fbcd5438c2d36283 (patch)
tree8cd8002a96456c991a4031f56cb0d5837bea4bcd /drivers/net
parentb431becc35a9d25c4a0220fa2c4cf9b9f1dc8bac (diff)
downloadlinux-e4afed373eefb91a80e69075fbcd5438c2d36283.tar.xz
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 <wangyijing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
index 6bb56d43614b..0ae88355ad51 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);