diff options
Diffstat (limited to 'drivers/net/stnic.c')
-rw-r--r-- | drivers/net/stnic.c | 25 |
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 | ||
61 | static struct net_device *stnic_dev; | 61 | static struct net_device *stnic_dev; |
62 | 62 | ||
63 | static int stnic_open (struct net_device *dev); | ||
64 | static int stnic_close (struct net_device *dev); | ||
65 | static void stnic_reset (struct net_device *dev); | 63 | static void stnic_reset (struct net_device *dev); |
66 | static void stnic_get_hdr (struct net_device *dev, struct e8390_pkt_hdr *hdr, | 64 | static 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 | ||
171 | static int | ||
172 | stnic_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 | |||
181 | static int | ||
182 | stnic_close (struct net_device *dev) | ||
183 | { | ||
184 | ei_close (dev); | ||
185 | return 0; | ||
186 | } | ||
187 | |||
188 | static void | 165 | static void |
189 | stnic_reset (struct net_device *dev) | 166 | stnic_reset (struct net_device *dev) |
190 | { | 167 | { |