[patches 2/8] pcmcia: remove IRQ_TYPE_TIME

Dominik Brodowski linux at dominikbrodowski.de
Tue Jan 11 11:58:30 EST 2005


IRQ_TYPE_TIME is unused in the whole kernel, so remove it.

Signed-off-by: Dominik Brodowski <linux at brodo.de>
---

 drivers/pcmcia/rsrc_mgr.c |   26 --------------------------
 1 files changed, 26 deletions(-)

Index: 2.6.10-rc3/drivers/pcmcia/rsrc_mgr.c
===================================================================
--- 2.6.10-rc3.orig/drivers/pcmcia/rsrc_mgr.c	2004-12-23 19:42:35.847410254 +0100
+++ 2.6.10-rc3/drivers/pcmcia/rsrc_mgr.c	2004-12-23 19:45:56.033875413 +0100
@@ -80,19 +80,6 @@
 	case IRQ_TYPE_EXCLUSIVE:
 	    ret = CS_IN_USE;
 	    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:
 	    if ((info->Attributes & RES_IRQ_TYPE)
 		!= RES_IRQ_TYPE_DYNAMIC) {
@@ -120,14 +107,6 @@
 	case IRQ_TYPE_EXCLUSIVE:
 	    info->Attributes |= RES_ALLOCATED;
 	    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:
 	    if (!(Attributes & IRQ_FIRST_SHARED)) {
 		ret = CS_BAD_ATTRIBUTE;
@@ -159,11 +138,6 @@
     case IRQ_TYPE_EXCLUSIVE:
 	info->Attributes &= RES_RESERVED;
 	break;
-    case IRQ_TYPE_TIME:
-	info->time_share--;
-	if (info->time_share == 0)
-	    info->Attributes &= RES_RESERVED;
-	break;
     case IRQ_TYPE_DYNAMIC_SHARING:
 	info->dyn_share--;
 	if (info->dyn_share == 0)



More information about the linux-pcmcia mailing list