Commit 57758ee0 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Russell King

[PCMCIA] kill dead DEV_STALE_* codepathes in non-networking drivers

I guess there was some overzealous copy & pasting going on..
parent 9d66b5e4
......@@ -725,14 +725,6 @@ static void mgslpc_release(u_long arg)
if (debug_level >= DEBUG_LEVEL_INFO)
printk("mgslpc_release(0x%p)\n", link);
if (link->open) {
if (debug_level >= DEBUG_LEVEL_INFO)
printk("synclink_cs: release postponed, '%s' still open\n",
link->dev->dev_name);
link->state |= DEV_STALE_CONFIG;
return;
}
/* Unlink the device chain */
link->dev = NULL;
link->state &= ~DEV_CONFIG;
......
......@@ -431,15 +431,6 @@ static void avmcs_config(dev_link_t *link)
static void avmcs_release(dev_link_t *link)
{
/*
If the device is currently in use, we won't release until it
is actually closed.
*/
if (link->open) {
link->state |= DEV_STALE_CONFIG;
return;
}
b1pcmcia_delcard(link->io.BasePort1, link->irq.AssignedIRQ);
/* Unlink the device chain */
......
......@@ -438,17 +438,6 @@ static void avma1cs_release(dev_link_t *link)
DEBUG(0, "avma1cs_release(0x%p)\n", link);
/*
If the device is currently in use, we won't release until it
is actually closed.
*/
if (link->open) {
DEBUG(1, "avma1_cs: release postponed, '%s' still open\n",
link->dev->dev_name);
link->state |= DEV_STALE_CONFIG;
return;
}
/* no unregister function with hisax */
HiSax_closecard(local->node.minor);
......@@ -463,7 +452,6 @@ static void avma1cs_release(dev_link_t *link)
if (link->state & DEV_STALE_LINK)
avma1cs_detach(link);
} /* avma1cs_release */
/*======================================================================
......
......@@ -442,18 +442,6 @@ static void elsa_cs_release(dev_link_t *link)
DEBUG(0, "elsa_cs_release(0x%p)\n", link);
/*
If the device is currently in use, we won't release until it
is actually closed, because until then, we can't be sure that
no one will try to access the device or its data structures.
*/
if (link->open) {
DEBUG(1, "elsa_cs: release postponed, '%s' "
"still open\n", link->dev->dev_name);
link->state |= DEV_STALE_CONFIG;
return;
}
/* Unlink the device chain */
link->dev = NULL;
......
......@@ -535,18 +535,6 @@ static void sedlbauer_release(dev_link_t *link)
{
DEBUG(0, "sedlbauer_release(0x%p)\n", link);
/*
If the device is currently in use, we won't release until it
is actually closed, because until then, we can't be sure that
no one will try to access the device or its data structures.
*/
if (link->open) {
DEBUG(1, "sedlbauer_cs: release postponed, '%s' still open\n",
link->dev->dev_name);
link->state |= DEV_STALE_CONFIG;
return;
}
/* Unlink the device chain */
link->dev = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment