[PATCH 2.5] pcmcia: don't inform "driver services" of cardbus-related events

From: Dominik Brodowski (linux@brodo.de)
Date: Fri Mar 28 2003 - 14:02:58 EST


Untested due to lack of CardBus card...

diff -ruN linux-original/drivers/pcmcia/cs.c linux/drivers/pcmcia/cs.c
--- linux-original/drivers/pcmcia/cs.c 2003-03-28 19:59:53.000000000 +0100
+++ linux/drivers/pcmcia/cs.c 2003-03-28 19:59:17.000000000 +0100
@@ -647,6 +647,8 @@
     DEBUG(1, "cs: send_event(sock %d, event %d, pri %d)\n",
           s->sock, event, priority);
     ret = 0;
+ if (s->state & SOCKET_CARDBUS)
+ return 0;
     for (; client; client = client->next) {
         if (client->state & (CLIENT_UNBOUND|CLIENT_STALE))
             continue;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:32 EST