.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * IMG SPDIF input controller driver |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2015 Imagination Technologies Ltd. |
---|
5 | 6 | * |
---|
6 | 7 | * 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. |
---|
11 | 8 | */ |
---|
12 | 9 | |
---|
13 | 10 | #include <linux/clk.h> |
---|
.. | .. |
---|
756 | 753 | goto err_pm_disable; |
---|
757 | 754 | } |
---|
758 | 755 | ret = pm_runtime_get_sync(&pdev->dev); |
---|
759 | | - if (ret < 0) |
---|
| 756 | + if (ret < 0) { |
---|
| 757 | + pm_runtime_put_noidle(&pdev->dev); |
---|
760 | 758 | goto err_suspend; |
---|
| 759 | + } |
---|
761 | 760 | |
---|
762 | 761 | rst = devm_reset_control_get_exclusive(&pdev->dev, "rst"); |
---|
763 | 762 | if (IS_ERR(rst)) { |
---|