Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262437
b: refs/heads/master
c: fe66101
h: refs/heads/master
i:
  262435: aa81586
v: v3
  • Loading branch information
Klement Fish authored and David S. Miller committed Jul 29, 2011
1 parent dc069f3 commit 3f34b0c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4203223a1aed862b4445fdcd260d6139603a51d9
refs/heads/master: fe66101f14813b77d84f6450d51772a2af2b81a1
12 changes: 11 additions & 1 deletion trunk/drivers/net/sis190.c
Original file line number Diff line number Diff line change
Expand Up @@ -1825,6 +1825,16 @@ static int sis190_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
generic_mii_ioctl(&tp->mii_if, if_mii(ifr), cmd, NULL);
}

static int sis190_mac_addr(struct net_device *dev, void *p)
{
int rc;

rc = eth_mac_addr(dev, p);
if (!rc)
sis190_init_rxfilter(dev);
return rc;
}

static const struct net_device_ops sis190_netdev_ops = {
.ndo_open = sis190_open,
.ndo_stop = sis190_close,
Expand All @@ -1833,7 +1843,7 @@ static const struct net_device_ops sis190_netdev_ops = {
.ndo_tx_timeout = sis190_tx_timeout,
.ndo_set_multicast_list = sis190_set_rx_mode,
.ndo_change_mtu = eth_change_mtu,
.ndo_set_mac_address = eth_mac_addr,
.ndo_set_mac_address = sis190_mac_addr,
.ndo_validate_addr = eth_validate_addr,
#ifdef CONFIG_NET_POLL_CONTROLLER
.ndo_poll_controller = sis190_netpoll,
Expand Down

0 comments on commit 3f34b0c

Please sign in to comment.