]> git.ipfire.org Git - thirdparty/linux.git/commit
phy: renesas: rcar-gen3-usb2: Use devm_pm_runtime_enable()
authorTommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
Mon, 22 Dec 2025 13:43:45 +0000 (14:43 +0100)
committerVinod Koul <vkoul@kernel.org>
Wed, 21 Jan 2026 08:46:02 +0000 (14:16 +0530)
commit230c817a1601af3ac2c9fdf3fbde9a3fee6bd26c
tree0d5912ee27dafd27e8ac9a85ee2bf62350f293de
parentd6db3b3af74a26b65d1ec1e86f9738c784e7ae29
phy: renesas: rcar-gen3-usb2: Use devm_pm_runtime_enable()

Replace pm_runtime_enable() with devm_pm_runtime_enable() to ensure proper
cleanup if the probe fails. This change enhances driver reliability by
avoiding resource leaks, as the devm-managed version automatically handles
disabling at probe failure or device removal.

Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
Link: https://patch.msgid.link/ca028d41f84227efeccb0cbdff22fbf16e5cf6ab.1766405010.git.tommaso.merciai.xr@bp.renesas.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/renesas/phy-rcar-gen3-usb2.c