[PATCH resend] pcmcia: Fix ti12xx_2nd_slot_empty always failing

Alex Harford aharford at inmotiontechnology.com
Sun Jun 15 13:34:25 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.25/drivers/pcmcia/ti113x.h
+++ linux-2.6.25/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