[PATCH] parport_cs: don't play games with resources

This change “[PATCH] parport_cs: don’t play games with resources” in Linux kernel is authored by Dominik Brodowski <linux [at] dominikbrodowski.net> on Sun Jan 15 08:30:40 2006 +0100.

[PATCH] parport_cs: don't play games with resources

pcmcia_request_io() doesn't mark the resource as busy in 2.6., therefore
there's no need to work around the registration of the resources into the
resource tree.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>

commit 8961b828667e715a96d9d8517f7c8b6552ead3bb

This Linux change may have been applied to various maintained Linux releases and you can find Linux releases containing changes from commit 8961b82.

There are 8 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/parport/parport_cs.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/drivers/parport/parport_cs.c b/drivers/parport/parport_cs.c
index 158d925..d0fc8be 100644
--- a/drivers/parport/parport_cs.c
+++ b/drivers/parport/parport_cs.c
@@ -226,9 +226,6 @@ void parport_config(dev_link_t *link)
     CS_CHECK(RequestIRQ, pcmcia_request_irq(handle, &link->irq));
     CS_CHECK(RequestConfiguration, pcmcia_request_configuration(handle, &link->conf));
-    release_region(link->io.BasePort1, link->io.NumPorts1);
-    if (link->io.NumPorts2)
-	release_region(link->io.BasePort2, link->io.NumPorts2);
     p = parport_pc_probe_port(link->io.BasePort1, link->io.BasePort2,
 			      link->irq.AssignedIRQ, PARPORT_DMA_NONE,
@@ -277,11 +274,6 @@ void parport_cs_release(dev_link_t *link)
     if (info->ndev) {
 	struct parport *p = info->port;
-	request_region(link->io.BasePort1, link->io.NumPorts1,
-		       info->node.dev_name);
-	if (link->io.NumPorts2)
-	    request_region(link->io.BasePort2, link->io.NumPorts2,
-			   info->node.dev_name);
     info->ndev = 0;
     link->dev = NULL;

The commit for this change in Linux stable tree is 8961b82 (patch).

Leave a Reply

Your email address will not be published. Required fields are marked *