summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-12-16 01:55:38 -0800
committerDavid S. Miller <davem@davemloft.net>2008-12-16 01:55:38 -0800
commitf9867328f9e1c3fceb8593f84b980aa1d648ce9c (patch)
tree82e6bc4c70f30ec54a67cab1ffe65a3088d30e56
parent8207befa199c9ade670d1cf9a5bcdc76310751bd (diff)
downloadblackbird-op-linux-f9867328f9e1c3fceb8593f84b980aa1d648ce9c.tar.gz
blackbird-op-linux-f9867328f9e1c3fceb8593f84b980aa1d648ce9c.zip
simeth: convert to net_device_ops
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--arch/ia64/hp/sim/simeth.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/arch/ia64/hp/sim/simeth.c b/arch/ia64/hp/sim/simeth.c
index c51b32c0b854..e4d8fde68103 100644
--- a/arch/ia64/hp/sim/simeth.c
+++ b/arch/ia64/hp/sim/simeth.c
@@ -167,6 +167,15 @@ netdev_read(int fd, unsigned char *buf, unsigned int len)
return ia64_ssc(fd, __pa(buf), len, 0, SSC_NETDEV_RECV);
}
+static const struct net_device_ops simeth_netdev_ops = {
+ .ndo_open = simeth_open,
+ .ndo_stop = simeth_close,
+ .ndo_start_xmit = simeth_tx,
+ .ndo_get_stats = simeth_get_stats,
+ .ndo_set_multicast_list = set_multicast_list, /* not yet used */
+
+};
+
/*
* Function shared with module code, so cannot be in init section
*
@@ -209,11 +218,7 @@ simeth_probe1(void)
local = netdev_priv(dev);
local->simfd = fd; /* keep track of underlying file descriptor */
- dev->open = simeth_open;
- dev->stop = simeth_close;
- dev->hard_start_xmit = simeth_tx;
- dev->get_stats = simeth_get_stats;
- dev->set_multicast_list = set_multicast_list; /* no yet used */
+ dev->netdev_ops = &simeth_netdev_ops;
err = register_netdev(dev);
if (err) {
OpenPOWER on IntegriCloud