Commit e4afed37 authored by Yijing Wang's avatar Yijing Wang Committed by David S. Miller

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: default avatarYijing Wang <wangyijing@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b431becc
...@@ -3232,7 +3232,6 @@ static int qlcnic_attach_func(struct pci_dev *pdev) ...@@ -3232,7 +3232,6 @@ static int qlcnic_attach_func(struct pci_dev *pdev)
if (err) if (err)
return err; return err;
pci_set_power_state(pdev, PCI_D0);
pci_set_master(pdev); pci_set_master(pdev);
pci_restore_state(pdev); pci_restore_state(pdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment