Commit 8e7678fe authored by Alexander Beregalov's avatar Alexander Beregalov Committed by David S. Miller

atarilance: convert to net_device_ops

Signed-off-by: default avatarAlexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 444f1a92
...@@ -453,6 +453,16 @@ static noinline int __init addr_accessible(volatile void *regp, int wordflag, ...@@ -453,6 +453,16 @@ static noinline int __init addr_accessible(volatile void *regp, int wordflag,
return( ret ); return( ret );
} }
static const struct net_device_ops lance_netdev_ops = {
.ndo_open = lance_open,
.ndo_stop = lance_close,
.ndo_start_xmit = lance_start_xmit,
.ndo_set_multicast_list = set_multicast_list,
.ndo_set_mac_address = lance_set_mac_address,
.ndo_tx_timeout = lance_tx_timeout,
.ndo_validate_addr = eth_validate_addr,
.ndo_change_mtu = eth_change_mtu,
};
static unsigned long __init lance_probe1( struct net_device *dev, static unsigned long __init lance_probe1( struct net_device *dev,
struct lance_addr *init_rec ) struct lance_addr *init_rec )
...@@ -623,15 +633,9 @@ static unsigned long __init lance_probe1( struct net_device *dev, ...@@ -623,15 +633,9 @@ static unsigned long __init lance_probe1( struct net_device *dev,
if (did_version++ == 0) if (did_version++ == 0)
DPRINTK( 1, ( version )); DPRINTK( 1, ( version ));
/* The LANCE-specific entries in the device structure. */ dev->netdev_ops = &lance_netdev_ops;
dev->open = &lance_open;
dev->hard_start_xmit = &lance_start_xmit;
dev->stop = &lance_close;
dev->set_multicast_list = &set_multicast_list;
dev->set_mac_address = &lance_set_mac_address;
/* XXX MSch */ /* XXX MSch */
dev->tx_timeout = lance_tx_timeout;
dev->watchdog_timeo = TX_TIMEOUT; dev->watchdog_timeo = TX_TIMEOUT;
return( 1 ); return( 1 );
......
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