aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2005-09-12 10:48:54 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-09-14 08:29:31 -0400
commitbb0ce608a3386268bd76ee6642a4cc8e6818a29b (patch)
tree00648bee47898e3ef84448b6e6e30feba1fec2c6 /drivers
parentd8ac10639b6a1ed900efbee38c18baaca31e64dc (diff)
[PATCH] 8139cp: support ETHTOOL_GPERMADDR
Add support for ETHTOOL_GPERMADDR to 8139cp. Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/8139cp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/8139cp.c b/drivers/net/8139cp.c
index 34b80de34fae..ebc20d9e7d7b 100644
--- a/drivers/net/8139cp.c
+++ b/drivers/net/8139cp.c
@@ -1575,6 +1575,7 @@ static struct ethtool_ops cp_ethtool_ops = {
1575 .set_wol = cp_set_wol, 1575 .set_wol = cp_set_wol,
1576 .get_strings = cp_get_strings, 1576 .get_strings = cp_get_strings,
1577 .get_ethtool_stats = cp_get_ethtool_stats, 1577 .get_ethtool_stats = cp_get_ethtool_stats,
1578 .get_perm_addr = ethtool_op_get_perm_addr,
1578}; 1579};
1579 1580
1580static int cp_ioctl (struct net_device *dev, struct ifreq *rq, int cmd) 1581static int cp_ioctl (struct net_device *dev, struct ifreq *rq, int cmd)
@@ -1773,6 +1774,7 @@ static int cp_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
1773 for (i = 0; i < 3; i++) 1774 for (i = 0; i < 3; i++)
1774 ((u16 *) (dev->dev_addr))[i] = 1775 ((u16 *) (dev->dev_addr))[i] =
1775 le16_to_cpu (read_eeprom (regs, i + 7, addr_len)); 1776 le16_to_cpu (read_eeprom (regs, i + 7, addr_len));
1777 memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len);
1776 1778
1777 dev->open = cp_open; 1779 dev->open = cp_open;
1778 dev->stop = cp_close; 1780 dev->stop = cp_close;