aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/lne390.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2008-11-25 21:24:38 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-25 21:24:38 -0500
commit0ec4d4fe413f4d16fb35a326a2dcf912872abcc8 (patch)
tree9432186f3394f9847d593ddbdedbce6a72e491de /drivers/net/lne390.c
parent8284abea9b49f9d8eae5b3ed36a9ea76a26388ca (diff)
lne390: convert 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/net/lne390.c')
-rw-r--r--drivers/net/lne390.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/drivers/net/lne390.c b/drivers/net/lne390.c
index bc70d5e79ab1..41cbaaef0654 100644
--- a/drivers/net/lne390.c
+++ b/drivers/net/lne390.c
@@ -53,9 +53,6 @@ static const char *version =
53 53
54static int lne390_probe1(struct net_device *dev, int ioaddr); 54static int lne390_probe1(struct net_device *dev, int ioaddr);
55 55
56static int lne390_open(struct net_device *dev);
57static int lne390_close(struct net_device *dev);
58
59static void lne390_reset_8390(struct net_device *dev); 56static void lne390_reset_8390(struct net_device *dev);
60 57
61static void lne390_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_page); 58static void lne390_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_page);
@@ -278,11 +275,7 @@ static int __init lne390_probe1(struct net_device *dev, int ioaddr)
278 ei_status.block_output = &lne390_block_output; 275 ei_status.block_output = &lne390_block_output;
279 ei_status.get_8390_hdr = &lne390_get_8390_hdr; 276 ei_status.get_8390_hdr = &lne390_get_8390_hdr;
280 277
281 dev->open = &lne390_open; 278 dev->netdev_ops = &ei_netdev_ops;
282 dev->stop = &lne390_close;
283#ifdef CONFIG_NET_POLL_CONTROLLER
284 dev->poll_controller = ei_poll;
285#endif
286 NS8390_init(dev, 0); 279 NS8390_init(dev, 0);
287 280
288 ret = register_netdev(dev); 281 ret = register_netdev(dev);
@@ -374,21 +367,6 @@ static void lne390_block_output(struct net_device *dev, int count,
374 memcpy_toio(shmem, buf, count); 367 memcpy_toio(shmem, buf, count);
375} 368}
376 369
377static int lne390_open(struct net_device *dev)
378{
379 ei_open(dev);
380 return 0;
381}
382
383static int lne390_close(struct net_device *dev)
384{
385
386 if (ei_debug > 1)
387 printk("%s: Shutting down ethercard.\n", dev->name);
388
389 ei_close(dev);
390 return 0;
391}
392 370
393#ifdef MODULE 371#ifdef MODULE
394#define MAX_LNE_CARDS 4 /* Max number of LNE390 cards per module */ 372#define MAX_LNE_CARDS 4 /* Max number of LNE390 cards per module */