Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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 <nevola@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

authored by

Laura Garcia and committed by
Jeff Garzik
f11cf25e d1e7fe4d

+1 -1
+1 -1
drivers/net/via-rhine.c
··· 1893 1893 1894 1894 /* Make sure we use pattern 0, 1 and not 4, 5 */ 1895 1895 if (rp->quirks & rq6patterns) 1896 - iowrite8(0x04, ioaddr + 0xA7); 1896 + iowrite8(0x04, ioaddr + WOLcgClr); 1897 1897 1898 1898 if (rp->wolopts & WAKE_MAGIC) { 1899 1899 iowrite8(WOLmagic, ioaddr + WOLcrSet);