aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial
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/serial
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/serial')
-rw-r--r--drivers/serial/serial_cs.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/drivers/serial/serial_cs.c b/drivers/serial/serial_cs.c
index 5047224d2625..649ce543327b 100644
--- a/drivers/serial/serial_cs.c
+++ b/drivers/serial/serial_cs.c
@@ -262,13 +262,6 @@ static const struct serial_quirk quirks[] = {
262static int serial_config(struct pcmcia_device * link); 262static int serial_config(struct pcmcia_device * link);
263 263
264 264
265/*======================================================================
266
267 After a card is removed, serial_remove() will unregister
268 the serial device(s), and release the PCMCIA configuration.
269
270======================================================================*/
271
272static void serial_remove(struct pcmcia_device *link) 265static void serial_remove(struct pcmcia_device *link)
273{ 266{
274 struct serial_info *info = link->priv; 267 struct serial_info *info = link->priv;
@@ -311,14 +304,6 @@ static int serial_resume(struct pcmcia_device *link)
311 return 0; 304 return 0;
312} 305}
313 306
314/*======================================================================
315
316 serial_attach() creates an "instance" of the driver, allocating
317 local data structures for one device. The device is registered
318 with Card Services.
319
320======================================================================*/
321
322static int serial_probe(struct pcmcia_device *link) 307static int serial_probe(struct pcmcia_device *link)
323{ 308{
324 struct serial_info *info; 309 struct serial_info *info;
@@ -339,15 +324,6 @@ static int serial_probe(struct pcmcia_device *link)
339 return serial_config(link); 324 return serial_config(link);
340} 325}
341 326
342/*======================================================================
343
344 This deletes a driver "instance". The device is de-registered
345 with Card Services. If it has been released, all local data
346 structures are freed. Otherwise, the structures will be freed
347 when the device is released.
348
349======================================================================*/
350
351static void serial_detach(struct pcmcia_device *link) 327static void serial_detach(struct pcmcia_device *link)
352{ 328{
353 struct serial_info *info = link->priv; 329 struct serial_info *info = link->priv;
@@ -631,14 +607,6 @@ static int serial_check_for_multi(struct pcmcia_device *p_dev, void *priv_data)
631} 607}
632 608
633 609
634/*======================================================================
635
636 serial_config() is scheduled to run after a CARD_INSERTION event
637 is received, to configure the PCMCIA socket, and to make the
638 serial device available to the system.
639
640======================================================================*/
641
642static int serial_config(struct pcmcia_device * link) 610static int serial_config(struct pcmcia_device * link)
643{ 611{
644 struct serial_info *info = link->priv; 612 struct serial_info *info = link->priv;