mmc: check for > 1 clk_requests when disabling gating
authorLinus Walleij <linus.ml.walleij@gmail.com>
Wed, 22 Dec 2010 08:50:12 +0000 (09:50 +0100)
committerChris Ball <cjb@laptop.org>
Sun, 9 Jan 2011 04:52:22 +0000 (23:52 -0500)
commitc288b85554097a3d1271f935c48b442280b2db9e
tree1ae03edf8864c2d5260d2cc875317bbecc1673c2
parent253e0a7c3dc4bbbc69fc6bfd7c01bc4c9397a5e5
mmc: check for > 1 clk_requests when disabling gating

Since we make sure the clock is enabled in the mmc_host_clk_exit()
function we should expect a reference counter of 1, not 0.

Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Tested-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/host.c