Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb531fc0 authored by John W. Linville's avatar John W. Linville Committed by Linus Torvalds
Browse files

[PATCH] 3c59x: support ETHTOOL_GPERMADDR



Add support for ETHTOOL_GPERMADDR to 3c59x.

Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 46e5e4a8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1341,6 +1341,7 @@ static int __devinit vortex_probe1(struct device *gendev,
		printk(" ***INVALID CHECKSUM %4.4x*** ", checksum);
	for (i = 0; i < 3; i++)
		((u16 *)dev->dev_addr)[i] = htons(eeprom[i + 10]);
	memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len);
	if (print_info) {
		for (i = 0; i < 6; i++)
			printk("%c%2.2x", i ? ':' : ' ', dev->dev_addr[i]);
@@ -3059,6 +3060,7 @@ static struct ethtool_ops vortex_ethtool_ops = {
	.set_settings           = vortex_set_settings,
	.get_link               = vortex_get_link,
	.nway_reset             = vortex_nway_reset,
	.get_perm_addr			= ethtool_op_get_perm_addr,
};

#ifdef CONFIG_PCI