From: Ulf Hansson Date: Tue, 14 May 2013 12:53:10 +0000 (+0100) Subject: ARM: 7721/1: mmc: mmci: Fixup regulator handling for vqmmc X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~41^2~1^4~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c0136ef773c206e242b9718740377a45747bd70;p=pandora-kernel.git ARM: 7721/1: mmc: mmci: Fixup regulator handling for vqmmc We can not rely on regulator_is_enabled to decide whether to enable|disable the regulator. It would mean that the reference counter for it is not balanced properly. Instead keep track of our internal state by using a new flag in the host struct, so we can take correct decisions. Signed-off-by: Ulf Hansson Signed-off-by: Russell King --- Reading git-diff-tree failed