]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8998b61f47a05a85c105c3ac4a97c5d554ef8b52
tree1ae03edf8864c2d5260d2cc875317bbecc1673c2
parent605e206a8af1bb2a40910cbe6dcc2c2bb592d9e3
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