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

Commit 9d18882d authored by Vijay Viswanath's avatar Vijay Viswanath Committed by Veerabhadrarao Badiganti
Browse files

mmc: block: Put card instead of release_host in mmc_ioctl



mmc_put_card API also takes care of runtime suspend/resume. Also, the
API mmc_blk_ioctl_cmd uses mmc_get_card. So, use mmc_put_card as this
will ensure the runtime counters are maintained when using the
MMC_IOCTL_CMD.

Change-Id: I74eacd0172c79eee299d672b7c63d3754a28ce61
Signed-off-by: default avatarVijay Viswanath <vviswana@codeaurora.org>
Signed-off-by: default avatarVeerabhadrarao Badiganti <vbadigan@codeaurora.org>
parent e9ab48b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -766,7 +766,7 @@ cmd_rel_host:
			       mmc_hostname(card->host), __func__);
	}
cmd_rel_host_halt:
	mmc_release_host(card->host);
	mmc_put_card(card);

cmd_done:
	mmc_blk_put(md);