aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/hardware
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/isdn/hardware
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/isdn/hardware')
-rw-r--r--drivers/isdn/hardware/avm/avm_cs.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/drivers/isdn/hardware/avm/avm_cs.c b/drivers/isdn/hardware/avm/avm_cs.c
index b172361bbef8..91f06a3ef002 100644
--- a/drivers/isdn/hardware/avm/avm_cs.c
+++ b/drivers/isdn/hardware/avm/avm_cs.c
@@ -38,38 +38,10 @@ MODULE_LICENSE("GPL");
38 38
39/*====================================================================*/ 39/*====================================================================*/
40 40
41/*
42 The event() function is this driver's Card Services event handler.
43 It will be called by Card Services when an appropriate card status
44 event is received. The config() and release() entry points are
45 used to configure or release a socket, in response to card insertion
46 and ejection events. They are invoked from the skeleton event
47 handler.
48*/
49
50static int avmcs_config(struct pcmcia_device *link); 41static int avmcs_config(struct pcmcia_device *link);
51static void avmcs_release(struct pcmcia_device *link); 42static void avmcs_release(struct pcmcia_device *link);
52
53/*
54 The attach() and detach() entry points are used to create and destroy
55 "instances" of the driver, where each instance represents everything
56 needed to manage one actual PCMCIA card.
57*/
58
59static void avmcs_detach(struct pcmcia_device *p_dev); 43static void avmcs_detach(struct pcmcia_device *p_dev);
60 44
61/*======================================================================
62
63 avmcs_attach() creates an "instance" of the driver, allocating
64 local data structures for one device. The device is registered
65 with Card Services.
66
67 The dev_link structure is initialized, but we don't actually
68 configure the card at this point -- we wait until we receive a
69 card insertion event.
70
71======================================================================*/
72
73static int avmcs_probe(struct pcmcia_device *p_dev) 45static int avmcs_probe(struct pcmcia_device *p_dev)
74{ 46{
75 /* General socket configuration */ 47 /* General socket configuration */
@@ -80,28 +52,12 @@ static int avmcs_probe(struct pcmcia_device *p_dev)
80 return avmcs_config(p_dev); 52 return avmcs_config(p_dev);
81} /* avmcs_attach */ 53} /* avmcs_attach */
82 54
83/*======================================================================
84
85 This deletes a driver "instance". The device is de-registered
86 with Card Services. If it has been released, all local data
87 structures are freed. Otherwise, the structures will be freed
88 when the device is released.
89
90======================================================================*/
91 55
92static void avmcs_detach(struct pcmcia_device *link) 56static void avmcs_detach(struct pcmcia_device *link)
93{ 57{
94 avmcs_release(link); 58 avmcs_release(link);
95} /* avmcs_detach */ 59} /* avmcs_detach */
96 60
97/*======================================================================
98
99 avmcs_config() is scheduled to run after a CARD_INSERTION event
100 is received, to configure the PCMCIA socket, and to make the
101 ethernet device available to the system.
102
103======================================================================*/
104
105static int avmcs_configcheck(struct pcmcia_device *p_dev, void *priv_data) 61static int avmcs_configcheck(struct pcmcia_device *p_dev, void *priv_data)
106{ 62{
107 p_dev->resource[0]->end = 16; 63 p_dev->resource[0]->end = 16;
@@ -185,13 +141,6 @@ static int avmcs_config(struct pcmcia_device *link)
185 141
186} /* avmcs_config */ 142} /* avmcs_config */
187 143
188/*======================================================================
189
190 After a card is removed, avmcs_release() will unregister the net
191 device, and release the PCMCIA configuration. If the device is
192 still open, this will be postponed until it is closed.
193
194======================================================================*/
195 144
196static void avmcs_release(struct pcmcia_device *link) 145static void avmcs_release(struct pcmcia_device *link)
197{ 146{