aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2008-11-25 21:25:49 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-25 21:25:49 -0500
commite0b8cb0e0e361a40e4ab9d8463762db2286571f5 (patch)
treee614c1339062f96b37a691541af4114bc3fa8121 /drivers/net
parent7d359daafe12b36b6da7ec6247caddf534183aed (diff)
stnic: convert to net_device_ops
Can just use common ei_netdev_ops definition. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/stnic.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/drivers/net/stnic.c b/drivers/net/stnic.c
index 2ed0bd596815..87a6b8eabc67 100644
--- a/drivers/net/stnic.c
+++ b/drivers/net/stnic.c
@@ -60,8 +60,6 @@ static byte stnic_eadr[6] =
60 60
61static struct net_device *stnic_dev; 61static struct net_device *stnic_dev;
62 62
63static int stnic_open (struct net_device *dev);
64static int stnic_close (struct net_device *dev);
65static void stnic_reset (struct net_device *dev); 63static void stnic_reset (struct net_device *dev);
66static void stnic_get_hdr (struct net_device *dev, struct e8390_pkt_hdr *hdr, 64static void stnic_get_hdr (struct net_device *dev, struct e8390_pkt_hdr *hdr,
67 int ring_page); 65 int ring_page);
@@ -122,11 +120,7 @@ static int __init stnic_probe(void)
122 /* Set the base address to point to the NIC, not the "real" base! */ 120 /* Set the base address to point to the NIC, not the "real" base! */
123 dev->base_addr = 0x1000; 121 dev->base_addr = 0x1000;
124 dev->irq = IRQ_STNIC; 122 dev->irq = IRQ_STNIC;
125 dev->open = &stnic_open; 123 dev->netdev_ops = &ei_netdev_ops;
126 dev->stop = &stnic_close;
127#ifdef CONFIG_NET_POLL_CONTROLLER
128 dev->poll_controller = ei_poll;
129#endif
130 124
131 /* Snarf the interrupt now. There's no point in waiting since we cannot 125 /* Snarf the interrupt now. There's no point in waiting since we cannot
132 share and the board will usually be enabled. */ 126 share and the board will usually be enabled. */
@@ -168,23 +162,6 @@ static int __init stnic_probe(void)
168 return 0; 162 return 0;
169} 163}
170 164
171static int
172stnic_open (struct net_device *dev)
173{
174#if 0
175 printk (KERN_DEBUG "stnic open\n");
176#endif
177 ei_open (dev);
178 return 0;
179}
180
181static int
182stnic_close (struct net_device *dev)
183{
184 ei_close (dev);
185 return 0;
186}
187
188static void 165static void
189stnic_reset (struct net_device *dev) 166stnic_reset (struct net_device *dev)
190{ 167{