[PATCH] pcmcia: Fix ti12xx_2nd_slot_empty always failing

Alex Harford aharford at inmotiontechnology.com
Fri Jun 13 17:10:15 EDT 2008


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 <alex.harford at inmotiontechnology.com>

---

  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;




More information about the linux-pcmcia mailing list