diff options
Diffstat (limited to 'arch/ia64/hp')
-rw-r--r-- | arch/ia64/hp/sim/simeth.c | 15 |
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) | |||
167 | return ia64_ssc(fd, __pa(buf), len, 0, SSC_NETDEV_RECV); | 167 | return ia64_ssc(fd, __pa(buf), len, 0, SSC_NETDEV_RECV); |
168 | } | 168 | } |
169 | 169 | ||
170 | static const struct net_device_ops simeth_netdev_ops = { | ||
171 | .ndo_open = simeth_open, | ||
172 | .ndo_stop = simeth_close, | ||
173 | .ndo_start_xmit = simeth_tx, | ||
174 | .ndo_get_stats = simeth_get_stats, | ||
175 | .ndo_set_multicast_list = set_multicast_list, /* not yet used */ | ||
176 | |||
177 | }; | ||
178 | |||
170 | /* | 179 | /* |
171 | * Function shared with module code, so cannot be in init section | 180 | * Function shared with module code, so cannot be in init section |
172 | * | 181 | * |
@@ -209,11 +218,7 @@ simeth_probe1(void) | |||
209 | local = netdev_priv(dev); | 218 | local = netdev_priv(dev); |
210 | local->simfd = fd; /* keep track of underlying file descriptor */ | 219 | local->simfd = fd; /* keep track of underlying file descriptor */ |
211 | 220 | ||
212 | dev->open = simeth_open; | 221 | dev->netdev_ops = &simeth_netdev_ops; |
213 | dev->stop = simeth_close; | ||
214 | dev->hard_start_xmit = simeth_tx; | ||
215 | dev->get_stats = simeth_get_stats; | ||
216 | dev->set_multicast_list = set_multicast_list; /* no yet used */ | ||
217 | 222 | ||
218 | err = register_netdev(dev); | 223 | err = register_netdev(dev); |
219 | if (err) { | 224 | if (err) { |