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/ide | |
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/ide')
-rw-r--r-- | drivers/ide/ide-cs.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/drivers/ide/ide-cs.c b/drivers/ide/ide-cs.c index 54702cc8e0d4..404843e8611b 100644 --- a/drivers/ide/ide-cs.c +++ b/drivers/ide/ide-cs.c | |||
@@ -71,17 +71,6 @@ static int ide_config(struct pcmcia_device *); | |||
71 | 71 | ||
72 | static void ide_detach(struct pcmcia_device *p_dev); | 72 | static void ide_detach(struct pcmcia_device *p_dev); |
73 | 73 | ||
74 | |||
75 | |||
76 | |||
77 | /*====================================================================== | ||
78 | |||
79 | ide_attach() creates an "instance" of the driver, allocating | ||
80 | local data structures for one device. The device is registered | ||
81 | with Card Services. | ||
82 | |||
83 | ======================================================================*/ | ||
84 | |||
85 | static int ide_probe(struct pcmcia_device *link) | 74 | static int ide_probe(struct pcmcia_device *link) |
86 | { | 75 | { |
87 | ide_info_t *info; | 76 | ide_info_t *info; |
@@ -102,15 +91,6 @@ static int ide_probe(struct pcmcia_device *link) | |||
102 | return ide_config(link); | 91 | return ide_config(link); |
103 | } /* ide_attach */ | 92 | } /* ide_attach */ |
104 | 93 | ||
105 | /*====================================================================== | ||
106 | |||
107 | This deletes a driver "instance". The device is de-registered | ||
108 | with Card Services. If it has been released, all local data | ||
109 | structures are freed. Otherwise, the structures will be freed | ||
110 | when the device is released. | ||
111 | |||
112 | ======================================================================*/ | ||
113 | |||
114 | static void ide_detach(struct pcmcia_device *link) | 94 | static void ide_detach(struct pcmcia_device *link) |
115 | { | 95 | { |
116 | ide_info_t *info = link->priv; | 96 | ide_info_t *info = link->priv; |
@@ -184,14 +164,6 @@ out_release: | |||
184 | return NULL; | 164 | return NULL; |
185 | } | 165 | } |
186 | 166 | ||
187 | /*====================================================================== | ||
188 | |||
189 | ide_config() is scheduled to run after a CARD_INSERTION event | ||
190 | is received, to configure the PCMCIA socket, and to make the | ||
191 | ide device available to the system. | ||
192 | |||
193 | ======================================================================*/ | ||
194 | |||
195 | static int pcmcia_check_one_config(struct pcmcia_device *pdev, void *priv_data) | 167 | static int pcmcia_check_one_config(struct pcmcia_device *pdev, void *priv_data) |
196 | { | 168 | { |
197 | int *is_kme = priv_data; | 169 | int *is_kme = priv_data; |
@@ -275,14 +247,6 @@ failed: | |||
275 | return -ENODEV; | 247 | return -ENODEV; |
276 | } /* ide_config */ | 248 | } /* ide_config */ |
277 | 249 | ||
278 | /*====================================================================== | ||
279 | |||
280 | After a card is removed, ide_release() will unregister the net | ||
281 | device, and release the PCMCIA configuration. If the device is | ||
282 | still open, this will be postponed until it is closed. | ||
283 | |||
284 | ======================================================================*/ | ||
285 | |||
286 | static void ide_release(struct pcmcia_device *link) | 250 | static void ide_release(struct pcmcia_device *link) |
287 | { | 251 | { |
288 | ide_info_t *info = link->priv; | 252 | ide_info_t *info = link->priv; |
@@ -308,15 +272,6 @@ static void ide_release(struct pcmcia_device *link) | |||
308 | } /* ide_release */ | 272 | } /* ide_release */ |
309 | 273 | ||
310 | 274 | ||
311 | /*====================================================================== | ||
312 | |||
313 | The card status event handler. Mostly, this schedules other | ||
314 | stuff to run after an event is received. A CARD_REMOVAL event | ||
315 | also sets some flags to discourage the ide drivers from | ||
316 | talking to the ports. | ||
317 | |||
318 | ======================================================================*/ | ||
319 | |||
320 | static struct pcmcia_device_id ide_ids[] = { | 275 | static struct pcmcia_device_id ide_ids[] = { |
321 | PCMCIA_DEVICE_FUNC_ID(4), | 276 | PCMCIA_DEVICE_FUNC_ID(4), |
322 | PCMCIA_DEVICE_MANF_CARD(0x0000, 0x0000), /* Corsair */ | 277 | PCMCIA_DEVICE_MANF_CARD(0x0000, 0x0000), /* Corsair */ |