diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2008-11-26 03:24:57 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-26 03:24:57 +0100 |
commit | 4be7ef4eac1d96a61af62bda8a59c1fb78c3b31b (patch) | |
tree | 931e4aedb7465128eff0d3d0ada3a342e0f642dd /drivers/net/hp.c | |
parent | lne390: convert to net_device_ops (diff) | |
download | linux-4be7ef4eac1d96a61af62bda8a59c1fb78c3b31b.tar.xz linux-4be7ef4eac1d96a61af62bda8a59c1fb78c3b31b.zip |
hp: convert to net_device_ops
Another old EISA driver converted.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hp.c')
-rw-r--r-- | drivers/net/hp.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/drivers/net/hp.c b/drivers/net/hp.c index 3669194f1063..5c4d78c1ff42 100644 --- a/drivers/net/hp.c +++ b/drivers/net/hp.c @@ -59,8 +59,6 @@ static unsigned int hppclan_portlist[] __initdata = static int hp_probe1(struct net_device *dev, int ioaddr); -static int hp_open(struct net_device *dev); -static int hp_close(struct net_device *dev); static void hp_reset_8390(struct net_device *dev); static void hp_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_page); @@ -198,11 +196,7 @@ static int __init hp_probe1(struct net_device *dev, int ioaddr) /* Set the base address to point to the NIC, not the "real" base! */ dev->base_addr = ioaddr + NIC_OFFSET; - dev->open = &hp_open; - dev->stop = &hp_close; -#ifdef CONFIG_NET_POLL_CONTROLLER - dev->poll_controller = eip_poll; -#endif + dev->netdev_ops = &eip_netdev_ops; ei_status.name = name; ei_status.word16 = wordmode; @@ -227,20 +221,6 @@ out: return retval; } -static int -hp_open(struct net_device *dev) -{ - eip_open(dev); - return 0; -} - -static int -hp_close(struct net_device *dev) -{ - eip_close(dev); - return 0; -} - static void hp_reset_8390(struct net_device *dev) { |