Skip to contentSkip to conversation

via-rhine.c: Use-register-offset-definition-for-WOLcgClr

PATCH Applied Laura Garcia 2 participants 2 messages Feb 23, 2008 – Feb 24, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 via-rhine.c: Use-register-offset-definition-for-WOLcgClr

Use register offset definition for WOLcgClr. This patch does not change the driver behaviour.

modified: drivers/net/via-rhine.c

---
 drivers/net/via-rhine.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/via-rhine.c +1 -1
index 7c851b1..8c9d6ae 100644
@@ -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);
Signature · 1 line
1.5.3.8
Applied
#1 lore raw
Quoted 8 lines · Laura Garcia

Use register offset definition for WOLcgClr. This patch does not change the driver behaviour.

modified: drivers/net/via-rhine.c

---
 drivers/net/via-rhine.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

applied, after making the following manual edits:

- removed "modified: ..." line, that is redundant to the diffstat, and being before the "---" separator, it is included in the changelog by automated tools

- removed all the silly dashes from the subject line. we want something readable, not a filename.