.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * IMG SPDIF output 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> |
---|
.. | .. |
---|
373 | 370 | goto err_pm_disable; |
---|
374 | 371 | } |
---|
375 | 372 | ret = pm_runtime_get_sync(&pdev->dev); |
---|
376 | | - if (ret < 0) |
---|
| 373 | + if (ret < 0) { |
---|
| 374 | + pm_runtime_put_noidle(&pdev->dev); |
---|
377 | 375 | goto err_suspend; |
---|
| 376 | + } |
---|
378 | 377 | |
---|
379 | 378 | img_spdif_out_writel(spdif, IMG_SPDIF_OUT_CTL_FS_MASK, |
---|
380 | 379 | IMG_SPDIF_OUT_CTL); |
---|