diff options
Diffstat (limited to 'drivers/parport/parport_cs.c')
-rw-r--r-- | drivers/parport/parport_cs.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/parport/parport_cs.c b/drivers/parport/parport_cs.c index 158d92563259..d0fc8be56954 100644 --- a/drivers/parport/parport_cs.c +++ b/drivers/parport/parport_cs.c | |||
@@ -226,9 +226,6 @@ void parport_config(dev_link_t *link) | |||
226 | CS_CHECK(RequestIRQ, pcmcia_request_irq(handle, &link->irq)); | 226 | CS_CHECK(RequestIRQ, pcmcia_request_irq(handle, &link->irq)); |
227 | CS_CHECK(RequestConfiguration, pcmcia_request_configuration(handle, &link->conf)); | 227 | CS_CHECK(RequestConfiguration, pcmcia_request_configuration(handle, &link->conf)); |
228 | 228 | ||
229 | release_region(link->io.BasePort1, link->io.NumPorts1); | ||
230 | if (link->io.NumPorts2) | ||
231 | release_region(link->io.BasePort2, link->io.NumPorts2); | ||
232 | p = parport_pc_probe_port(link->io.BasePort1, link->io.BasePort2, | 229 | p = parport_pc_probe_port(link->io.BasePort1, link->io.BasePort2, |
233 | link->irq.AssignedIRQ, PARPORT_DMA_NONE, | 230 | link->irq.AssignedIRQ, PARPORT_DMA_NONE, |
234 | NULL); | 231 | NULL); |
@@ -277,11 +274,6 @@ void parport_cs_release(dev_link_t *link) | |||
277 | if (info->ndev) { | 274 | if (info->ndev) { |
278 | struct parport *p = info->port; | 275 | struct parport *p = info->port; |
279 | parport_pc_unregister_port(p); | 276 | parport_pc_unregister_port(p); |
280 | request_region(link->io.BasePort1, link->io.NumPorts1, | ||
281 | info->node.dev_name); | ||
282 | if (link->io.NumPorts2) | ||
283 | request_region(link->io.BasePort2, link->io.NumPorts2, | ||
284 | info->node.dev_name); | ||
285 | } | 277 | } |
286 | info->ndev = 0; | 278 | info->ndev = 0; |
287 | link->dev = NULL; | 279 | link->dev = NULL; |