Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05f43d48 authored by Alex Harford's avatar Alex Harford Committed by Dominik Brodowski
Browse files

pcmcia: Fix ti12xx_2nd_slot_empty always failing



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

Signed-off-by: default avatarAlex Harford <alex.harford@inmotiontechnology.com>
Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
parent c1ac0228
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;