Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/tegra: dsi: Fix missing pm_runtime_disable() in the error handling path of tegra_dsi_probe()

If an error occurs after calling pm_runtime_enable(), pm_runtime_disable()
should be called as already done in the remove function.

Fixes: ef8187d75265 ("drm/tegra: dsi: Implement runtime PM")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/ee4a15c9cd4b574a55cd67c30d2411239ba2cee9.1693667005.git.christophe.jaillet@wanadoo.fr

authored by

Christophe JAILLET and committed by
Thierry Reding
5286a9fc 830c1ded

+1
+1
drivers/gpu/drm/tegra/dsi.c
··· 1675 1675 return 0; 1676 1676 1677 1677 unregister: 1678 + pm_runtime_disable(&pdev->dev); 1678 1679 mipi_dsi_host_unregister(&dsi->host); 1679 1680 mipi_free: 1680 1681 tegra_mipi_free(dsi->mipi);