From: Laura Garcia Date: Sat, 23 Feb 2008 17:56:35 +0000 (+0100) Subject: [netdrvr] via-rhine: Use register offset definition for WOLcgClr X-Git-Tag: v2.6.25-rc4~148^2~41^2~9 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f11cf25ef345a320b152aa68a014c8a65cf4ed44;p=linux-2.6-omap-h63xx.git [netdrvr] via-rhine: Use register offset definition for WOLcgClr 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 Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/via-rhine.c b/drivers/net/via-rhine.c index 7c851b1e6da..8c9d6ae2bb3 100644 --- a/drivers/net/via-rhine.c +++ b/drivers/net/via-rhine.c @@ -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);