diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c index 4c8cf116..944d7e15 100644 --- a/drivers/gpu/drm/tegra/hdmi.c +++ b/drivers/gpu/drm/tegra/hdmi.c @@ -1875,16 +1875,14 @@ static int tegra_hdmi_probe(struct platform_device *pdev) platform_set_drvdata(pdev, hdmi); -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0) err = devm_pm_runtime_enable(&pdev->dev); if (err) return err; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0) err = devm_tegra_core_dev_init_opp_table_common(&pdev->dev); if (err) return err; -#else - pm_runtime_enable(&pdev->dev); #endif INIT_LIST_HEAD(&hdmi->client.list); @@ -1905,10 +1903,6 @@ static int tegra_hdmi_remove(struct platform_device *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); tegra_output_remove(&hdmi->output);