mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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>
This commit is contained in:
parent
0ec4d4fe41
commit
4be7ef4eac
1 changed files with 1 additions and 21 deletions
|
@ -59,8 +59,6 @@ static unsigned int hppclan_portlist[] __initdata =
|
||||||
|
|
||||||
static int hp_probe1(struct net_device *dev, int ioaddr);
|
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_reset_8390(struct net_device *dev);
|
||||||
static void hp_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr,
|
static void hp_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr,
|
||||||
int ring_page);
|
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! */
|
/* Set the base address to point to the NIC, not the "real" base! */
|
||||||
dev->base_addr = ioaddr + NIC_OFFSET;
|
dev->base_addr = ioaddr + NIC_OFFSET;
|
||||||
dev->open = &hp_open;
|
dev->netdev_ops = &eip_netdev_ops;
|
||||||
dev->stop = &hp_close;
|
|
||||||
#ifdef CONFIG_NET_POLL_CONTROLLER
|
|
||||||
dev->poll_controller = eip_poll;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ei_status.name = name;
|
ei_status.name = name;
|
||||||
ei_status.word16 = wordmode;
|
ei_status.word16 = wordmode;
|
||||||
|
@ -227,20 +221,6 @@ out:
|
||||||
return retval;
|
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
|
static void
|
||||||
hp_reset_8390(struct net_device *dev)
|
hp_reset_8390(struct net_device *dev)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue