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/parport | |
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/parport')
-rw-r--r-- | drivers/parport/parport_cs.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/drivers/parport/parport_cs.c b/drivers/parport/parport_cs.c index 6f4c9560b2b9..787ebdeae310 100644 --- a/drivers/parport/parport_cs.c +++ b/drivers/parport/parport_cs.c | |||
@@ -80,14 +80,6 @@ static void parport_detach(struct pcmcia_device *p_dev); | |||
80 | static int parport_config(struct pcmcia_device *link); | 80 | static int parport_config(struct pcmcia_device *link); |
81 | static void parport_cs_release(struct pcmcia_device *); | 81 | static void parport_cs_release(struct pcmcia_device *); |
82 | 82 | ||
83 | /*====================================================================== | ||
84 | |||
85 | parport_attach() creates an "instance" of the driver, allocating | ||
86 | local data structures for one device. The device is registered | ||
87 | with Card Services. | ||
88 | |||
89 | ======================================================================*/ | ||
90 | |||
91 | static int parport_probe(struct pcmcia_device *link) | 83 | static int parport_probe(struct pcmcia_device *link) |
92 | { | 84 | { |
93 | parport_info_t *info; | 85 | parport_info_t *info; |
@@ -105,15 +97,6 @@ static int parport_probe(struct pcmcia_device *link) | |||
105 | return parport_config(link); | 97 | return parport_config(link); |
106 | } /* parport_attach */ | 98 | } /* parport_attach */ |
107 | 99 | ||
108 | /*====================================================================== | ||
109 | |||
110 | This deletes a driver "instance". The device is de-registered | ||
111 | with Card Services. If it has been released, all local data | ||
112 | structures are freed. Otherwise, the structures will be freed | ||
113 | when the device is released. | ||
114 | |||
115 | ======================================================================*/ | ||
116 | |||
117 | static void parport_detach(struct pcmcia_device *link) | 100 | static void parport_detach(struct pcmcia_device *link) |
118 | { | 101 | { |
119 | dev_dbg(&link->dev, "parport_detach\n"); | 102 | dev_dbg(&link->dev, "parport_detach\n"); |
@@ -123,14 +106,6 @@ static void parport_detach(struct pcmcia_device *link) | |||
123 | kfree(link->priv); | 106 | kfree(link->priv); |
124 | } /* parport_detach */ | 107 | } /* parport_detach */ |
125 | 108 | ||
126 | /*====================================================================== | ||
127 | |||
128 | parport_config() is scheduled to run after a CARD_INSERTION event | ||
129 | is received, to configure the PCMCIA socket, and to make the | ||
130 | parport device available to the system. | ||
131 | |||
132 | ======================================================================*/ | ||
133 | |||
134 | static int parport_config_check(struct pcmcia_device *p_dev, void *priv_data) | 109 | static int parport_config_check(struct pcmcia_device *p_dev, void *priv_data) |
135 | { | 110 | { |
136 | p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; | 111 | p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; |
@@ -187,14 +162,6 @@ failed: | |||
187 | return -ENODEV; | 162 | return -ENODEV; |
188 | } /* parport_config */ | 163 | } /* parport_config */ |
189 | 164 | ||
190 | /*====================================================================== | ||
191 | |||
192 | After a card is removed, parport_cs_release() will unregister the | ||
193 | device, and release the PCMCIA configuration. If the device is | ||
194 | still open, this will be postponed until it is closed. | ||
195 | |||
196 | ======================================================================*/ | ||
197 | |||
198 | static void parport_cs_release(struct pcmcia_device *link) | 165 | static void parport_cs_release(struct pcmcia_device *link) |
199 | { | 166 | { |
200 | parport_info_t *info = link->priv; | 167 | parport_info_t *info = link->priv; |