Skip to content

Commit

Permalink
pcmcia: Fix ti12xx_2nd_slot_empty always failing
Browse files Browse the repository at this point in the history
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@inmotiontechnology.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
  • Loading branch information
Alex Harford authored and Dominik Brodowski committed Jun 24, 2008
1 parent c1ac022 commit 05f43d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pcmcia/ti113x.h
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ static int ti12xx_2nd_slot_empty(struct yenta_socket *socket)
goto out;

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

0 comments on commit 05f43d4

Please sign in to comment.