forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/sound/soc/img/img-spdif-out.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * IMG SPDIF output controller driver
34 *
45 * Copyright (C) 2015 Imagination Technologies Ltd.
56 *
67 * Author: Damien Horsley <Damien.Horsley@imgtec.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify it
9
- * under the terms and conditions of the GNU General Public License,
10
- * version 2, as published by the Free Software Foundation.
118 */
129
1310 #include <linux/clk.h>
....@@ -373,8 +370,10 @@
373370 goto err_pm_disable;
374371 }
375372 ret = pm_runtime_get_sync(&pdev->dev);
376
- if (ret < 0)
373
+ if (ret < 0) {
374
+ pm_runtime_put_noidle(&pdev->dev);
377375 goto err_suspend;
376
+ }
378377
379378 img_spdif_out_writel(spdif, IMG_SPDIF_OUT_CTL_FS_MASK,
380379 IMG_SPDIF_OUT_CTL);