Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

lne390: convert to net_device_ops

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Stephen Hemminger and committed by
David S. Miller
0ec4d4fe 8284abea

+1 -23
+1 -23
drivers/net/lne390.c
··· 53 53 54 54 static int lne390_probe1(struct net_device *dev, int ioaddr); 55 55 56 - static int lne390_open(struct net_device *dev); 57 - static int lne390_close(struct net_device *dev); 58 - 59 56 static void lne390_reset_8390(struct net_device *dev); 60 57 61 58 static void lne390_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_page); ··· 275 278 ei_status.block_output = &lne390_block_output; 276 279 ei_status.get_8390_hdr = &lne390_get_8390_hdr; 277 280 278 - dev->open = &lne390_open; 279 - dev->stop = &lne390_close; 280 - #ifdef CONFIG_NET_POLL_CONTROLLER 281 - dev->poll_controller = ei_poll; 282 - #endif 281 + dev->netdev_ops = &ei_netdev_ops; 283 282 NS8390_init(dev, 0); 284 283 285 284 ret = register_netdev(dev); ··· 367 374 memcpy_toio(shmem, buf, count); 368 375 } 369 376 370 - static int lne390_open(struct net_device *dev) 371 - { 372 - ei_open(dev); 373 - return 0; 374 - } 375 - 376 - static int lne390_close(struct net_device *dev) 377 - { 378 - 379 - if (ei_debug > 1) 380 - printk("%s: Shutting down ethercard.\n", dev->name); 381 - 382 - ei_close(dev); 383 - return 0; 384 - } 385 377 386 378 #ifdef MODULE 387 379 #define MAX_LNE_CARDS 4 /* Max number of LNE390 cards per module */