Commit cc9574ab authored by Dominik Brodowski's avatar Dominik Brodowski Committed by Linus Torvalds

[PATCH] pcmcia: remove IRQ_TYPE_TIME

IRQ_TYPE_TIME is unused in the whole kernel, so remove it.
Signed-off-by: default avatarDominik Brodowski <linux@brodo.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 10059cbc
...@@ -80,19 +80,6 @@ int try_irq(u_int Attributes, int irq, int specific) ...@@ -80,19 +80,6 @@ int try_irq(u_int Attributes, int irq, int specific)
case IRQ_TYPE_EXCLUSIVE: case IRQ_TYPE_EXCLUSIVE:
ret = CS_IN_USE; ret = CS_IN_USE;
break; break;
case IRQ_TYPE_TIME:
if ((info->Attributes & RES_IRQ_TYPE)
!= RES_IRQ_TYPE_TIME) {
ret = CS_IN_USE;
break;
}
if (Attributes & IRQ_FIRST_SHARED) {
ret = CS_BAD_ATTRIBUTE;
break;
}
info->Attributes |= RES_IRQ_TYPE_TIME | RES_ALLOCATED;
info->time_share++;
break;
case IRQ_TYPE_DYNAMIC_SHARING: case IRQ_TYPE_DYNAMIC_SHARING:
if ((info->Attributes & RES_IRQ_TYPE) if ((info->Attributes & RES_IRQ_TYPE)
!= RES_IRQ_TYPE_DYNAMIC) { != RES_IRQ_TYPE_DYNAMIC) {
...@@ -120,14 +107,6 @@ int try_irq(u_int Attributes, int irq, int specific) ...@@ -120,14 +107,6 @@ int try_irq(u_int Attributes, int irq, int specific)
case IRQ_TYPE_EXCLUSIVE: case IRQ_TYPE_EXCLUSIVE:
info->Attributes |= RES_ALLOCATED; info->Attributes |= RES_ALLOCATED;
break; break;
case IRQ_TYPE_TIME:
if (!(Attributes & IRQ_FIRST_SHARED)) {
ret = CS_BAD_ATTRIBUTE;
break;
}
info->Attributes |= RES_IRQ_TYPE_TIME | RES_ALLOCATED;
info->time_share = 1;
break;
case IRQ_TYPE_DYNAMIC_SHARING: case IRQ_TYPE_DYNAMIC_SHARING:
if (!(Attributes & IRQ_FIRST_SHARED)) { if (!(Attributes & IRQ_FIRST_SHARED)) {
ret = CS_BAD_ATTRIBUTE; ret = CS_BAD_ATTRIBUTE;
...@@ -159,11 +138,6 @@ void undo_irq(u_int Attributes, int irq) ...@@ -159,11 +138,6 @@ void undo_irq(u_int Attributes, int irq)
case IRQ_TYPE_EXCLUSIVE: case IRQ_TYPE_EXCLUSIVE:
info->Attributes &= RES_RESERVED; info->Attributes &= RES_RESERVED;
break; break;
case IRQ_TYPE_TIME:
info->time_share--;
if (info->time_share == 0)
info->Attributes &= RES_RESERVED;
break;
case IRQ_TYPE_DYNAMIC_SHARING: case IRQ_TYPE_DYNAMIC_SHARING:
info->dyn_share--; info->dyn_share--;
if (info->dyn_share == 0) if (info->dyn_share == 0)
......
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