mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-12 04:19:08 +00:00
Merge remote-tracking branch 'asoc/fix/atmel' into asoc-linus
This commit is contained in:
commit
7c9e061729
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user