For TI 1520 and others, ti12xx_2nd_slot_empty was reading card detect 
from the wrong slot, and always failing.

Signed-off-by: Alex Harford <[EMAIL PROTECTED]>

---

  ti113x.h |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

--- unpatched-linux-2.6.26-rc6/drivers/pcmcia/ti113x.h
+++ linux-2.6.26-rc6/drivers/pcmcia/ti113x.h
@@ -692,7 +692,7 @@ static int ti12xx_2nd_slot_empty(struct
                 goto out;

         /* check state */
-       yenta_get_status(&socket->socket, &state);
+       yenta_get_status(&slot2->socket, &state);
         if (state & SS_DETECT) {
                 ret = 0;
                 goto out;


_______________________________________________
Linux PCMCIA reimplementation list
http://lists.infradead.org/mailman/listinfo/linux-pcmcia

Reply via email to