Skip to content

Commit

Permalink
[netdrvr] via-rhine: Use register offset definition for WOLcgClr
Browse files Browse the repository at this point in the history
Use register offset definition for WOLcgClr, rather than a magic
number.

This patch does not change the driver behaviour.

Signed-off-by: Laura Garcia Liebana <nevola@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Laura Garcia authored and Jeff Garzik committed Feb 24, 2008
1 parent d1e7fe4 commit f11cf25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/via-rhine.c
Original file line number Diff line number Diff line change
Expand Up @@ -1893,7 +1893,7 @@ static void rhine_shutdown (struct pci_dev *pdev)

/* Make sure we use pattern 0, 1 and not 4, 5 */
if (rp->quirks & rq6patterns)
iowrite8(0x04, ioaddr + 0xA7);
iowrite8(0x04, ioaddr + WOLcgClr);

if (rp->wolopts & WAKE_MAGIC) {
iowrite8(WOLmagic, ioaddr + WOLcrSet);
Expand Down

0 comments on commit f11cf25

Please sign in to comment.