Skip to content

Commit 311503b

Browse files
YijingWangdavem330
authored andcommitted
tulip: 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 tulip_init_one(). Signed-off-by: Yijing Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e4afed3 commit 311503b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/net/ethernet/dec/tulip/tulip_core.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,12 +1410,6 @@ static int tulip_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
14101410
return i;
14111411
}
14121412

1413-
/* The chip will fail to enter a low-power state later unless
1414-
* first explicitly commanded into D0 */
1415-
if (pci_set_power_state(pdev, PCI_D0)) {
1416-
pr_notice("Failed to set power state to D0\n");
1417-
}
1418-
14191413
irq = pdev->irq;
14201414

14211415
/* alloc_etherdev ensures aligned and zeroed private structures */

0 commit comments

Comments
 (0)