Skip to content

Commit

Permalink
[PATCH] smc91x: shut down power after probing
Browse files Browse the repository at this point in the history
If the interface is not used right away after being probed it wastes
power needlessly. Noted by Holger Schurig.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
  • Loading branch information
Nicolas Pitre authored and Jeff Garzik committed Oct 28, 2005
1 parent 8fee5f5 commit 99e1baf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/smc91x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1983,6 +1983,10 @@ static int __init smc_probe(struct net_device *dev, void __iomem *ioaddr)
if (lp->version >= (CHIP_91100 << 4))
smc_phy_detect(dev);

/* then shut everything down to save power */
smc_shutdown(dev);
smc_phy_powerdown(dev);

/* Set default parameters */
lp->msg_enable = NETIF_MSG_LINK;
lp->ctl_rfduplx = 0;
Expand Down

0 comments on commit 99e1baf

Please sign in to comment.