diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-01-07 20:26:48 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-07 20:26:48 -0500 |
commit | ed8cf436caccb7f464135b0a9eba0e7624299826 (patch) | |
tree | 1be27752908fc5f7411be6e05b3294abd49155cf /drivers | |
parent | 04fb5f735e70a27f7dd06a5e349c003fd5d4bfa2 (diff) |
plip: update to net_device_ops
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/plip.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/net/plip.c b/drivers/net/plip.c index 0c46d603b8fe..0be0f0b164f3 100644 --- a/drivers/net/plip.c +++ b/drivers/net/plip.c | |||
@@ -265,6 +265,13 @@ static const struct header_ops plip_header_ops = { | |||
265 | .cache = plip_hard_header_cache, | 265 | .cache = plip_hard_header_cache, |
266 | }; | 266 | }; |
267 | 267 | ||
268 | static const struct net_device_ops plip_netdev_ops = { | ||
269 | .ndo_open = plip_open, | ||
270 | .ndo_stop = plip_close, | ||
271 | .ndo_start_xmit = plip_tx_packet, | ||
272 | .ndo_do_ioctl = plip_ioctl, | ||
273 | }; | ||
274 | |||
268 | /* Entry point of PLIP driver. | 275 | /* Entry point of PLIP driver. |
269 | Probe the hardware, and register/initialize the driver. | 276 | Probe the hardware, and register/initialize the driver. |
270 | 277 | ||
@@ -280,15 +287,11 @@ plip_init_netdev(struct net_device *dev) | |||
280 | struct net_local *nl = netdev_priv(dev); | 287 | struct net_local *nl = netdev_priv(dev); |
281 | 288 | ||
282 | /* Then, override parts of it */ | 289 | /* Then, override parts of it */ |
283 | dev->hard_start_xmit = plip_tx_packet; | ||
284 | dev->open = plip_open; | ||
285 | dev->stop = plip_close; | ||
286 | dev->do_ioctl = plip_ioctl; | ||
287 | |||
288 | dev->tx_queue_len = 10; | 290 | dev->tx_queue_len = 10; |
289 | dev->flags = IFF_POINTOPOINT|IFF_NOARP; | 291 | dev->flags = IFF_POINTOPOINT|IFF_NOARP; |
290 | memset(dev->dev_addr, 0xfc, ETH_ALEN); | 292 | memset(dev->dev_addr, 0xfc, ETH_ALEN); |
291 | 293 | ||
294 | dev->netdev_ops = &plip_netdev_ops; | ||
292 | dev->header_ops = &plip_header_ops; | 295 | dev->header_ops = &plip_header_ops; |
293 | 296 | ||
294 | 297 | ||