Commit 7c9e0617 authored by Mark Brown's avatar Mark Brown

Merge remote-tracking branch 'asoc/fix/atmel' into asoc-linus

parents 3b2f64d0 9a9b1c61
......@@ -66,14 +66,19 @@ EXPORT_SYMBOL(ssc_request);
void ssc_free(struct ssc_device *ssc)
{
bool disable_clk = true;
spin_lock(&user_lock);
if (ssc->user) {
if (ssc->user)
ssc->user--;
clk_disable_unprepare(ssc->clk);
} else {
else {
disable_clk = false;
dev_dbg(&ssc->pdev->dev, "device already free\n");
}
spin_unlock(&user_lock);
if (disable_clk)
clk_disable_unprepare(ssc->clk);
}
EXPORT_SYMBOL(ssc_free);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment