diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-08-15 02:38:38 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-09-29 11:20:25 -0400 |
commit | 2262054e74b4b26ed56a8535c1259f6c6c2862a4 (patch) | |
tree | fbcd0aa7879408b9676c2df6c7514e5d7428880a /drivers/net/pcmcia/smc91c92_cs.c | |
parent | 06b3a1d12f41b592972643f8b84015d6c03dc576 (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.c | 33 |
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 | |||
310 | static int smc91c92_probe(struct pcmcia_device *link) | 302 | static 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 | |||
350 | static void smc91c92_detach(struct pcmcia_device *link) | 333 | static 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 | |||
830 | static int smc91c92_config(struct pcmcia_device *link) | 805 | static 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 | |||
988 | static void smc91c92_release(struct pcmcia_device *link) | 955 | static 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"); |