diff options
| author | Dinghao Liu <[email protected]> | 2020-07-09 06:43:56 +0000 |
|---|---|---|
| committer | Lorenzo Pieralisi <[email protected]> | 2020-07-23 09:27:15 +0000 |
| commit | a68e06e729b1b06c50ee52917d6b825b43e7d269 (patch) | |
| tree | fc8ae767483ba86609e2449471f5573a8f635f67 /drivers/pci/controller/pcie-xilinx-cpm.c | |
| parent | PCI: qcom: Fix runtime PM imbalance on error (diff) | |
| download | kernel-a68e06e729b1b06c50ee52917d6b825b43e7d269.tar.gz kernel-a68e06e729b1b06c50ee52917d6b825b43e7d269.zip | |
PCI: rcar: Fix runtime PM imbalance on error
pm_runtime_get_sync() increments the runtime PM usage counter even
when the call returns an error code. Thus a corresponding decrement is
needed on the error handling path to keep the counter balanced.
Link: https://lore.kernel.org/r/[email protected]
Fixes: 0df6150e7ceb ("PCI: rcar: Use runtime PM to control controller clock")
Signed-off-by: Dinghao Liu <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Reviewed-by: Yoshihiro Shimoda <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pcie-xilinx-cpm.c')
0 files changed, 0 insertions, 0 deletions
