clk: renesas: rcar-usb2-clock-sel: Fix error handling in .probe()
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Thu, 15 Apr 2021 07:33:38 +0000 (15:33 +0800)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 11 May 2021 07:57:07 +0000 (09:57 +0200)
commita20a40a8bbc2cf4b29d7248ea31e974e9103dd7f
treeae35c3c95bcc9c2eaf48c277ddd9f0c8f095ea77
parent16927401d92401b8f1fe6b57707e08271347ee80
clk: renesas: rcar-usb2-clock-sel: Fix error handling in .probe()

The error handling paths after pm_runtime_get_sync() have no refcount
decrement, which leads to refcount leak.

Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Link: https://lore.kernel.org/r/20210415073338.22287-1-dinghao.liu@zju.edu.cn
[geert: Remove now unused variable priv]
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/rcar-usb2-clock-sel.c