aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pcmcia/smc91c92_cs.c
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2010-08-15 02:38:38 -0400
committerDominik Brodowski <linux@dominikbrodowski.net>2010-09-29 11:20:25 -0400
commit2262054e74b4b26ed56a8535c1259f6c6c2862a4 (patch)
treefbcd0aa7879408b9676c2df6c7514e5d7428880a /drivers/net/pcmcia/smc91c92_cs.c
parent06b3a1d12f41b592972643f8b84015d6c03dc576 (diff)
pcmcia: remove obsolete and wrong comments
What's worse than no comment? A wrong comment. Several PCMCIA device drivers contained the same comments, which were based on how the PCMCIA subsystem worked in the old days of 2.4., and which were originally part of a "dummy_cs" driver. These comments no longer matched at all what is happening now, and therefore should be removed. Tested-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/net/pcmcia/smc91c92_cs.c')
-rw-r--r--drivers/net/pcmcia/smc91c92_cs.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/drivers/net/pcmcia/smc91c92_cs.c b/drivers/net/pcmcia/smc91c92_cs.c
index e4c4fb626572..0af2fc8ec164 100644
--- a/drivers/net/pcmcia/smc91c92_cs.c
+++ b/drivers/net/pcmcia/smc91c92_cs.c
@@ -299,14 +299,6 @@ static const struct net_device_ops smc_netdev_ops = {
299 .ndo_validate_addr = eth_validate_addr, 299 .ndo_validate_addr = eth_validate_addr,
300}; 300};
301 301
302/*======================================================================
303
304 smc91c92_attach() creates an "instance" of the driver, allocating
305 local data structures for one device. The device is registered
306 with Card Services.
307
308======================================================================*/
309
310static int smc91c92_probe(struct pcmcia_device *link) 302static int smc91c92_probe(struct pcmcia_device *link)
311{ 303{
312 struct smc_private *smc; 304 struct smc_private *smc;
@@ -338,15 +330,6 @@ static int smc91c92_probe(struct pcmcia_device *link)
338 return smc91c92_config(link); 330 return smc91c92_config(link);
339} /* smc91c92_attach */ 331} /* smc91c92_attach */
340 332
341/*======================================================================
342
343 This deletes a driver "instance". The device is de-registered
344 with Card Services. If it has been released, all local data
345 structures are freed. Otherwise, the structures will be freed
346 when the device is released.
347
348======================================================================*/
349
350static void smc91c92_detach(struct pcmcia_device *link) 333static void smc91c92_detach(struct pcmcia_device *link)
351{ 334{
352 struct net_device *dev = link->priv; 335 struct net_device *dev = link->priv;
@@ -819,14 +802,6 @@ static int check_sig(struct pcmcia_device *link)
819 return -ENODEV; 802 return -ENODEV;
820} 803}
821 804
822/*======================================================================
823
824 smc91c92_config() is scheduled to run after a CARD_INSERTION event
825 is received, to configure the PCMCIA socket, and to make the
826 ethernet device available to the system.
827
828======================================================================*/
829
830static int smc91c92_config(struct pcmcia_device *link) 805static int smc91c92_config(struct pcmcia_device *link)
831{ 806{
832 struct net_device *dev = link->priv; 807 struct net_device *dev = link->priv;
@@ -977,14 +952,6 @@ config_failed:
977 return -ENODEV; 952 return -ENODEV;
978} /* smc91c92_config */ 953} /* smc91c92_config */
979 954
980/*======================================================================
981
982 After a card is removed, smc91c92_release() will unregister the net
983 device, and release the PCMCIA configuration. If the device is
984 still open, this will be postponed until it is closed.
985
986======================================================================*/
987
988static void smc91c92_release(struct pcmcia_device *link) 955static void smc91c92_release(struct pcmcia_device *link)
989{ 956{
990 dev_dbg(&link->dev, "smc91c92_release\n"); 957 dev_dbg(&link->dev, "smc91c92_release\n");