mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-17 06:52:43 +00:00
wl3501: convert to net_device_ops
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4255d41145
commit
85a151b760
@ -1883,6 +1883,16 @@ static const struct iw_handler_def wl3501_handler_def = {
|
|||||||
.get_wireless_stats = wl3501_get_wireless_stats,
|
.get_wireless_stats = wl3501_get_wireless_stats,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const struct net_device_ops wl3501_netdev_ops = {
|
||||||
|
.ndo_open = wl3501_open,
|
||||||
|
.ndo_stop = wl3501_close,
|
||||||
|
.ndo_start_xmit = wl3501_hard_start_xmit,
|
||||||
|
.ndo_tx_timeout = wl3501_tx_timeout,
|
||||||
|
.ndo_change_mtu = eth_change_mtu,
|
||||||
|
.ndo_set_mac_address = eth_mac_addr,
|
||||||
|
.ndo_validate_addr = eth_validate_addr,
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* wl3501_attach - creates an "instance" of the driver
|
* wl3501_attach - creates an "instance" of the driver
|
||||||
*
|
*
|
||||||
@ -1917,17 +1927,14 @@ static int wl3501_probe(struct pcmcia_device *p_dev)
|
|||||||
goto out_link;
|
goto out_link;
|
||||||
|
|
||||||
|
|
||||||
dev->open = wl3501_open;
|
dev->netdev_ops = &wl3501_netdev_ops;
|
||||||
dev->stop = wl3501_close;
|
|
||||||
dev->hard_start_xmit = wl3501_hard_start_xmit;
|
|
||||||
dev->tx_timeout = wl3501_tx_timeout;
|
|
||||||
dev->watchdog_timeo = 5 * HZ;
|
dev->watchdog_timeo = 5 * HZ;
|
||||||
|
|
||||||
this = netdev_priv(dev);
|
this = netdev_priv(dev);
|
||||||
this->wireless_data.spy_data = &this->spy_data;
|
this->wireless_data.spy_data = &this->spy_data;
|
||||||
this->p_dev = p_dev;
|
this->p_dev = p_dev;
|
||||||
dev->wireless_data = &this->wireless_data;
|
dev->wireless_data = &this->wireless_data;
|
||||||
dev->wireless_handlers = (struct iw_handler_def *)&wl3501_handler_def;
|
dev->wireless_handlers = &wl3501_handler_def;
|
||||||
SET_ETHTOOL_OPS(dev, &ops);
|
SET_ETHTOOL_OPS(dev, &ops);
|
||||||
netif_stop_queue(dev);
|
netif_stop_queue(dev);
|
||||||
p_dev->priv = p_dev->irq.Instance = dev;
|
p_dev->priv = p_dev->irq.Instance = dev;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user