diff options
Diffstat (limited to 'drivers/isdn/hisax/avma1_cs.c')
-rw-r--r-- | drivers/isdn/hisax/avma1_cs.c | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/drivers/isdn/hisax/avma1_cs.c b/drivers/isdn/hisax/avma1_cs.c index 62616c871c78..ac4dd7857cbd 100644 --- a/drivers/isdn/hisax/avma1_cs.c +++ b/drivers/isdn/hisax/avma1_cs.c | |||
@@ -39,39 +39,10 @@ module_param(isdnprot, int, 0); | |||
39 | 39 | ||
40 | /*====================================================================*/ | 40 | /*====================================================================*/ |
41 | 41 | ||
42 | /* | ||
43 | The event() function is this driver's Card Services event handler. | ||
44 | It will be called by Card Services when an appropriate card status | ||
45 | event is received. The config() and release() entry points are | ||
46 | used to configure or release a socket, in response to card insertion | ||
47 | and ejection events. They are invoked from the skeleton event | ||
48 | handler. | ||
49 | */ | ||
50 | |||
51 | static int avma1cs_config(struct pcmcia_device *link) __devinit ; | 42 | static int avma1cs_config(struct pcmcia_device *link) __devinit ; |
52 | static void avma1cs_release(struct pcmcia_device *link); | 43 | static void avma1cs_release(struct pcmcia_device *link); |
53 | |||
54 | /* | ||
55 | The attach() and detach() entry points are used to create and destroy | ||
56 | "instances" of the driver, where each instance represents everything | ||
57 | needed to manage one actual PCMCIA card. | ||
58 | */ | ||
59 | |||
60 | static void avma1cs_detach(struct pcmcia_device *p_dev) __devexit ; | 44 | static void avma1cs_detach(struct pcmcia_device *p_dev) __devexit ; |
61 | 45 | ||
62 | |||
63 | /*====================================================================== | ||
64 | |||
65 | avma1cs_attach() creates an "instance" of the driver, allocating | ||
66 | local data structures for one device. The device is registered | ||
67 | with Card Services. | ||
68 | |||
69 | The dev_link structure is initialized, but we don't actually | ||
70 | configure the card at this point -- we wait until we receive a | ||
71 | card insertion event. | ||
72 | |||
73 | ======================================================================*/ | ||
74 | |||
75 | static int __devinit avma1cs_probe(struct pcmcia_device *p_dev) | 46 | static int __devinit avma1cs_probe(struct pcmcia_device *p_dev) |
76 | { | 47 | { |
77 | dev_dbg(&p_dev->dev, "avma1cs_attach()\n"); | 48 | dev_dbg(&p_dev->dev, "avma1cs_attach()\n"); |
@@ -84,15 +55,6 @@ static int __devinit avma1cs_probe(struct pcmcia_device *p_dev) | |||
84 | return avma1cs_config(p_dev); | 55 | return avma1cs_config(p_dev); |
85 | } /* avma1cs_attach */ | 56 | } /* avma1cs_attach */ |
86 | 57 | ||
87 | /*====================================================================== | ||
88 | |||
89 | This deletes a driver "instance". The device is de-registered | ||
90 | with Card Services. If it has been released, all local data | ||
91 | structures are freed. Otherwise, the structures will be freed | ||
92 | when the device is released. | ||
93 | |||
94 | ======================================================================*/ | ||
95 | |||
96 | static void __devexit avma1cs_detach(struct pcmcia_device *link) | 58 | static void __devexit avma1cs_detach(struct pcmcia_device *link) |
97 | { | 59 | { |
98 | dev_dbg(&link->dev, "avma1cs_detach(0x%p)\n", link); | 60 | dev_dbg(&link->dev, "avma1cs_detach(0x%p)\n", link); |
@@ -100,14 +62,6 @@ static void __devexit avma1cs_detach(struct pcmcia_device *link) | |||
100 | kfree(link->priv); | 62 | kfree(link->priv); |
101 | } /* avma1cs_detach */ | 63 | } /* avma1cs_detach */ |
102 | 64 | ||
103 | /*====================================================================== | ||
104 | |||
105 | avma1cs_config() is scheduled to run after a CARD_INSERTION event | ||
106 | is received, to configure the PCMCIA socket, and to make the | ||
107 | ethernet device available to the system. | ||
108 | |||
109 | ======================================================================*/ | ||
110 | |||
111 | static int avma1cs_configcheck(struct pcmcia_device *p_dev, void *priv_data) | 65 | static int avma1cs_configcheck(struct pcmcia_device *p_dev, void *priv_data) |
112 | { | 66 | { |
113 | p_dev->resource[0]->end = 16; | 67 | p_dev->resource[0]->end = 16; |
@@ -180,14 +134,6 @@ static int __devinit avma1cs_config(struct pcmcia_device *link) | |||
180 | return 0; | 134 | return 0; |
181 | } /* avma1cs_config */ | 135 | } /* avma1cs_config */ |
182 | 136 | ||
183 | /*====================================================================== | ||
184 | |||
185 | After a card is removed, avma1cs_release() will unregister the net | ||
186 | device, and release the PCMCIA configuration. If the device is | ||
187 | still open, this will be postponed until it is closed. | ||
188 | |||
189 | ======================================================================*/ | ||
190 | |||
191 | static void avma1cs_release(struct pcmcia_device *link) | 137 | static void avma1cs_release(struct pcmcia_device *link) |
192 | { | 138 | { |
193 | unsigned long minor = (unsigned long) link->priv; | 139 | unsigned long minor = (unsigned long) link->priv; |
@@ -200,7 +146,6 @@ static void avma1cs_release(struct pcmcia_device *link) | |||
200 | pcmcia_disable_device(link); | 146 | pcmcia_disable_device(link); |
201 | } /* avma1cs_release */ | 147 | } /* avma1cs_release */ |
202 | 148 | ||
203 | |||
204 | static struct pcmcia_device_id avma1cs_ids[] = { | 149 | static struct pcmcia_device_id avma1cs_ids[] = { |
205 | PCMCIA_DEVICE_PROD_ID12("AVM", "ISDN A", 0x95d42008, 0xadc9d4bb), | 150 | PCMCIA_DEVICE_PROD_ID12("AVM", "ISDN A", 0x95d42008, 0xadc9d4bb), |
206 | PCMCIA_DEVICE_PROD_ID12("ISDN", "CARD", 0x8d9761c8, 0x01c5aa7b), | 151 | PCMCIA_DEVICE_PROD_ID12("ISDN", "CARD", 0x8d9761c8, 0x01c5aa7b), |
@@ -216,8 +161,6 @@ static struct pcmcia_driver avma1cs_driver = { | |||
216 | .id_table = avma1cs_ids, | 161 | .id_table = avma1cs_ids, |
217 | }; | 162 | }; |
218 | 163 | ||
219 | /*====================================================================*/ | ||
220 | |||
221 | static int __init init_avma1_cs(void) | 164 | static int __init init_avma1_cs(void) |
222 | { | 165 | { |
223 | return pcmcia_register_driver(&avma1cs_driver); | 166 | return pcmcia_register_driver(&avma1cs_driver); |