diff options
author | Alexander Beregalov <a.beregalov@gmail.com> | 2009-04-15 12:52:52 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-16 02:20:21 -0700 |
commit | 96cd55ea0edac7f6d51d2391d5cc1b5c2e360e67 (patch) | |
tree | 4711d8016e93f3a702b80786ad2a30d15c42687a /drivers/net | |
parent | d6771e0b895f04e8bbd12f12fb3a97e130a4a5f4 (diff) | |
download | kernel_samsung_aries-96cd55ea0edac7f6d51d2391d5cc1b5c2e360e67.zip kernel_samsung_aries-96cd55ea0edac7f6d51d2391d5cc1b5c2e360e67.tar.gz kernel_samsung_aries-96cd55ea0edac7f6d51d2391d5cc1b5c2e360e67.tar.bz2 |
mvme147: convert to net_device_ops
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/mvme147.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/drivers/net/mvme147.c b/drivers/net/mvme147.c index 435e5a8..93c709d 100644 --- a/drivers/net/mvme147.c +++ b/drivers/net/mvme147.c @@ -57,6 +57,17 @@ typedef void (*writerap_t)(void *, unsigned short); typedef void (*writerdp_t)(void *, unsigned short); typedef unsigned short (*readrdp_t)(void *); +static const struct net_device_ops lance_netdev_ops = { + .ndo_open = m147lance_open, + .ndo_stop = m147lance_close, + .ndo_start_xmit = lance_start_xmit, + .ndo_set_multicast_list = lance_set_multicast, + .ndo_tx_timeout = lance_tx_timeout, + .ndo_change_mtu = eth_change_mtu, + .ndo_validate_addr = eth_validate_addr, + .ndo_set_mac_address = eth_mac_addr, +}; + /* Initialise the one and only on-board 7990 */ struct net_device * __init mvme147lance_probe(int unit) { @@ -81,11 +92,7 @@ struct net_device * __init mvme147lance_probe(int unit) /* Fill the dev fields */ dev->base_addr = (unsigned long)MVME147_LANCE_BASE; - dev->open = &m147lance_open; - dev->stop = &m147lance_close; - dev->hard_start_xmit = &lance_start_xmit; - dev->set_multicast_list = &lance_set_multicast; - dev->tx_timeout = &lance_tx_timeout; + dev->netdev_ops = &lance_netdev_ops; dev->dma = 0; addr=(u_long *)ETHERNET_ADDRESS; |