aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sis190.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sis190.c')
-rw-r--r--drivers/net/sis190.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/net/sis190.c b/drivers/net/sis190.c
index 8ad7bfbaa3af..3c0f1312b391 100644
--- a/drivers/net/sis190.c
+++ b/drivers/net/sis190.c
@@ -1825,6 +1825,16 @@ static int sis190_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
1825 generic_mii_ioctl(&tp->mii_if, if_mii(ifr), cmd, NULL); 1825 generic_mii_ioctl(&tp->mii_if, if_mii(ifr), cmd, NULL);
1826} 1826}
1827 1827
1828static int sis190_mac_addr(struct net_device *dev, void *p)
1829{
1830 int rc;
1831
1832 rc = eth_mac_addr(dev, p);
1833 if (!rc)
1834 sis190_init_rxfilter(dev);
1835 return rc;
1836}
1837
1828static const struct net_device_ops sis190_netdev_ops = { 1838static const struct net_device_ops sis190_netdev_ops = {
1829 .ndo_open = sis190_open, 1839 .ndo_open = sis190_open,
1830 .ndo_stop = sis190_close, 1840 .ndo_stop = sis190_close,
@@ -1833,7 +1843,7 @@ static const struct net_device_ops sis190_netdev_ops = {
1833 .ndo_tx_timeout = sis190_tx_timeout, 1843 .ndo_tx_timeout = sis190_tx_timeout,
1834 .ndo_set_multicast_list = sis190_set_rx_mode, 1844 .ndo_set_multicast_list = sis190_set_rx_mode,
1835 .ndo_change_mtu = eth_change_mtu, 1845 .ndo_change_mtu = eth_change_mtu,
1836 .ndo_set_mac_address = eth_mac_addr, 1846 .ndo_set_mac_address = sis190_mac_addr,
1837 .ndo_validate_addr = eth_validate_addr, 1847 .ndo_validate_addr = eth_validate_addr,
1838#ifdef CONFIG_NET_POLL_CONTROLLER 1848#ifdef CONFIG_NET_POLL_CONTROLLER
1839 .ndo_poll_controller = sis190_netpoll, 1849 .ndo_poll_controller = sis190_netpoll,