forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/sound/soc/img/img-spdif-in.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * IMG SPDIF input 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>
....@@ -756,8 +753,10 @@
756753 goto err_pm_disable;
757754 }
758755 ret = pm_runtime_get_sync(&pdev->dev);
759
- if (ret < 0)
756
+ if (ret < 0) {
757
+ pm_runtime_put_noidle(&pdev->dev);
760758 goto err_suspend;
759
+ }
761760
762761 rst = devm_reset_control_get_exclusive(&pdev->dev, "rst");
763762 if (IS_ERR(rst)) {