pcmcia: remove unused IRQ modification feature
authorDominik Brodowski <linux@dominikbrodowski.net>
Sat, 6 Mar 2010 19:42:35 +0000 (20:42 +0100)
committerDominik Brodowski <linux@dominikbrodowski.net>
Mon, 10 May 2010 08:23:10 +0000 (10:23 +0200)
The IRQ modification feature was unused, and I see no reason to keep it.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/pcmcia/pcmcia_resource.c

index 7c3d03bb4f304eac0b22fb1ae99db20026133d44..ba82cb3b194412b549ff622ea92604e92365df6a 100644 (file)
@@ -275,19 +275,9 @@ int pcmcia_modify_configuration(struct pcmcia_device *p_dev,
                goto unlock;
        }
 
-       if (mod->Attributes & CONF_IRQ_CHANGE_VALID) {
-               if (mod->Attributes & CONF_ENABLE_IRQ) {
-                       c->Attributes |= CONF_ENABLE_IRQ;
-                       s->socket.io_irq = s->irq.AssignedIRQ;
-               } else {
-                       c->Attributes &= ~CONF_ENABLE_IRQ;
-                       s->socket.io_irq = 0;
-               }
-               s->ops->set_socket(s, &s->socket);
-       }
-
-       if (mod->Attributes & CONF_VCC_CHANGE_VALID) {
-               dev_dbg(&s->dev, "changing Vcc is not allowed at this time\n");
+       if (mod->Attributes & (CONF_IRQ_CHANGE_VALID | CONF_VCC_CHANGE_VALID)) {
+               dev_dbg(&s->dev,
+                       "changing Vcc or IRQ is not allowed at this time\n");
                ret = -EINVAL;
                goto unlock;
        }