aboutsummaryrefslogtreecommitdiff
path: root/drivers/pci/controller/dwc
diff options
context:
space:
mode:
authorDinghao Liu <[email protected]>2021-04-08 15:24:02 +0800
committerLorenzo Pieralisi <[email protected]>2021-08-05 14:08:57 +0100
commit1e29cd9983eba1b596bc07f94d81d728007f8a25 (patch)
tree9c5940b72c47fb6d67fe11604162c6dfa3ae3d61 /drivers/pci/controller/dwc
parente73f0f0ee7541171d89f2e2491130c7771ba58d3 (diff)
PCI: rcar: Fix runtime PM imbalance in rcar_pcie_ep_probe()
pm_runtime_get_sync() will increase the runtime PM counter even it returns an error. Thus a pairing decrement is needed to prevent refcount leak. Fix this by replacing this API with pm_runtime_resume_and_get(), which will not change the runtime PM counter on error. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dinghao Liu <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc')
0 files changed, 0 insertions, 0 deletions