aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl3501_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/wl3501_cs.c')
-rw-r--r--drivers/net/wireless/wl3501_cs.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/drivers/net/wireless/wl3501_cs.c b/drivers/net/wireless/wl3501_cs.c
index 433ff5bcabf0..1f64d6033ab5 100644
--- a/drivers/net/wireless/wl3501_cs.c
+++ b/drivers/net/wireless/wl3501_cs.c
@@ -1883,6 +1883,16 @@ static const struct iw_handler_def wl3501_handler_def = {
1883 .get_wireless_stats = wl3501_get_wireless_stats, 1883 .get_wireless_stats = wl3501_get_wireless_stats,
1884}; 1884};
1885 1885
1886static const struct net_device_ops wl3501_netdev_ops = {
1887 .ndo_open = wl3501_open,
1888 .ndo_stop = wl3501_close,
1889 .ndo_start_xmit = wl3501_hard_start_xmit,
1890 .ndo_tx_timeout = wl3501_tx_timeout,
1891 .ndo_change_mtu = eth_change_mtu,
1892 .ndo_set_mac_address = eth_mac_addr,
1893 .ndo_validate_addr = eth_validate_addr,
1894};
1895
1886/** 1896/**
1887 * wl3501_attach - creates an "instance" of the driver 1897 * wl3501_attach - creates an "instance" of the driver
1888 * 1898 *
@@ -1917,17 +1927,14 @@ static int wl3501_probe(struct pcmcia_device *p_dev)
1917 goto out_link; 1927 goto out_link;
1918 1928
1919 1929
1920 dev->open = wl3501_open; 1930 dev->netdev_ops = &wl3501_netdev_ops;
1921 dev->stop = wl3501_close;
1922 dev->hard_start_xmit = wl3501_hard_start_xmit;
1923 dev->tx_timeout = wl3501_tx_timeout;
1924 dev->watchdog_timeo = 5 * HZ; 1931 dev->watchdog_timeo = 5 * HZ;
1925 1932
1926 this = netdev_priv(dev); 1933 this = netdev_priv(dev);
1927 this->wireless_data.spy_data = &this->spy_data; 1934 this->wireless_data.spy_data = &this->spy_data;
1928 this->p_dev = p_dev; 1935 this->p_dev = p_dev;
1929 dev->wireless_data = &this->wireless_data; 1936 dev->wireless_data = &this->wireless_data;
1930 dev->wireless_handlers = (struct iw_handler_def *)&wl3501_handler_def; 1937 dev->wireless_handlers = &wl3501_handler_def;
1931 SET_ETHTOOL_OPS(dev, &ops); 1938 SET_ETHTOOL_OPS(dev, &ops);
1932 netif_stop_queue(dev); 1939 netif_stop_queue(dev);
1933 p_dev->priv = p_dev->irq.Instance = dev; 1940 p_dev->priv = p_dev->irq.Instance = dev;