aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pcmcia/3c589_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/pcmcia/3c589_cs.c')
-rw-r--r--drivers/net/pcmcia/3c589_cs.c35
1 files changed, 1 insertions, 34 deletions
diff --git a/drivers/net/pcmcia/3c589_cs.c b/drivers/net/pcmcia/3c589_cs.c
index 551759c25a7..a07e2229533 100644
--- a/drivers/net/pcmcia/3c589_cs.c
+++ b/drivers/net/pcmcia/3c589_cs.c
@@ -175,14 +175,6 @@ static const struct ethtool_ops netdev_ethtool_ops;
175 175
176static void tc589_detach(struct pcmcia_device *p_dev); 176static void tc589_detach(struct pcmcia_device *p_dev);
177 177
178/*======================================================================
179
180 tc589_attach() creates an "instance" of the driver, allocating
181 local data structures for one device. The device is registered
182 with Card Services.
183
184======================================================================*/
185
186static const struct net_device_ops el3_netdev_ops = { 178static const struct net_device_ops el3_netdev_ops = {
187 .ndo_open = el3_open, 179 .ndo_open = el3_open,
188 .ndo_stop = el3_close, 180 .ndo_stop = el3_close,
@@ -224,16 +216,7 @@ static int tc589_probe(struct pcmcia_device *link)
224 SET_ETHTOOL_OPS(dev, &netdev_ethtool_ops); 216 SET_ETHTOOL_OPS(dev, &netdev_ethtool_ops);
225 217
226 return tc589_config(link); 218 return tc589_config(link);
227} /* tc589_attach */ 219}
228
229/*======================================================================
230
231 This deletes a driver "instance". The device is de-registered
232 with Card Services. If it has been released, all local data
233 structures are freed. Otherwise, the structures will be freed
234 when the device is released.
235
236======================================================================*/
237 220
238static void tc589_detach(struct pcmcia_device *link) 221static void tc589_detach(struct pcmcia_device *link)
239{ 222{
@@ -248,14 +231,6 @@ static void tc589_detach(struct pcmcia_device *link)
248 free_netdev(dev); 231 free_netdev(dev);
249} /* tc589_detach */ 232} /* tc589_detach */
250 233
251/*======================================================================
252
253 tc589_config() is scheduled to run after a CARD_INSERTION event
254 is received, to configure the PCMCIA socket, and to make the
255 ethernet device available to the system.
256
257======================================================================*/
258
259static int tc589_config(struct pcmcia_device *link) 234static int tc589_config(struct pcmcia_device *link)
260{ 235{
261 struct net_device *dev = link->priv; 236 struct net_device *dev = link->priv;
@@ -350,14 +325,6 @@ failed:
350 return -ENODEV; 325 return -ENODEV;
351} /* tc589_config */ 326} /* tc589_config */
352 327
353/*======================================================================
354
355 After a card is removed, tc589_release() will unregister the net
356 device, and release the PCMCIA configuration. If the device is
357 still open, this will be postponed until it is closed.
358
359======================================================================*/
360
361static void tc589_release(struct pcmcia_device *link) 328static void tc589_release(struct pcmcia_device *link)
362{ 329{
363 pcmcia_disable_device(link); 330 pcmcia_disable_device(link);