Commit 361bc03e authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

netdev: convert depca to net_device_ops

Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cb0c7005
...@@ -566,6 +566,18 @@ MODULE_LICENSE("GPL"); ...@@ -566,6 +566,18 @@ MODULE_LICENSE("GPL");
outw(CSR0, DEPCA_ADDR);\ outw(CSR0, DEPCA_ADDR);\
outw(STOP, DEPCA_DATA) outw(STOP, DEPCA_DATA)
static const struct net_device_ops depca_netdev_ops = {
.ndo_open = depca_open,
.ndo_start_xmit = depca_start_xmit,
.ndo_stop = depca_close,
.ndo_set_multicast_list = set_multicast_list,
.ndo_do_ioctl = depca_ioctl,
.ndo_tx_timeout = depca_tx_timeout,
.ndo_change_mtu = eth_change_mtu,
.ndo_set_mac_address = eth_mac_addr,
.ndo_validate_addr = eth_validate_addr,
};
static int __init depca_hw_init (struct net_device *dev, struct device *device) static int __init depca_hw_init (struct net_device *dev, struct device *device)
{ {
struct depca_private *lp; struct depca_private *lp;
...@@ -793,12 +805,7 @@ static int __init depca_hw_init (struct net_device *dev, struct device *device) ...@@ -793,12 +805,7 @@ static int __init depca_hw_init (struct net_device *dev, struct device *device)
} }
/* The DEPCA-specific entries in the device structure. */ /* The DEPCA-specific entries in the device structure. */
dev->open = &depca_open; dev->netdev_ops = &depca_netdev_ops;
dev->hard_start_xmit = &depca_start_xmit;
dev->stop = &depca_close;
dev->set_multicast_list = &set_multicast_list;
dev->do_ioctl = &depca_ioctl;
dev->tx_timeout = depca_tx_timeout;
dev->watchdog_timeo = TX_TIMEOUT; dev->watchdog_timeo = TX_TIMEOUT;
dev->mem_start = 0; dev->mem_start = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment