mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
drm/tegra: Always use devm_pm_runtime_enable
The function devm_pm_runtime_enable() has been supported since Linux
v5.15 and so always use this function.
Bug 3820317
Change-Id: I805f3c681822b4bfc825b671c54a7dea2199f351
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3026922
(cherry picked from commit 591949a2f1)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3029980
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
7997b6e8b0
commit
60adf47e0f
@@ -1864,16 +1864,14 @@ static int tegra_hdmi_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
platform_set_drvdata(pdev, hdmi);
|
platform_set_drvdata(pdev, hdmi);
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0)
|
|
||||||
err = devm_pm_runtime_enable(&pdev->dev);
|
err = devm_pm_runtime_enable(&pdev->dev);
|
||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0)
|
||||||
err = devm_tegra_core_dev_init_opp_table_common(&pdev->dev);
|
err = devm_tegra_core_dev_init_opp_table_common(&pdev->dev);
|
||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
#else
|
|
||||||
pm_runtime_enable(&pdev->dev);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
INIT_LIST_HEAD(&hdmi->client.list);
|
INIT_LIST_HEAD(&hdmi->client.list);
|
||||||
@@ -1894,10 +1892,6 @@ static int tegra_hdmi_remove(struct platform_device *pdev)
|
|||||||
{
|
{
|
||||||
struct tegra_hdmi *hdmi = platform_get_drvdata(pdev);
|
struct tegra_hdmi *hdmi = platform_get_drvdata(pdev);
|
||||||
|
|
||||||
#if !(LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0))
|
|
||||||
pm_runtime_disable(&pdev->dev);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
host1x_client_unregister(&hdmi->client);
|
host1x_client_unregister(&hdmi->client);
|
||||||
|
|
||||||
tegra_output_remove(&hdmi->output);
|
tegra_output_remove(&hdmi->output);
|
||||||
|
|||||||
Reference in New Issue
Block a user