diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c index 4cb37b18..f0c3a65f 100644 --- a/drivers/gpu/drm/tegra/hdmi.c +++ b/drivers/gpu/drm/tegra/hdmi.c @@ -1864,16 +1864,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); @@ -1894,10 +1892,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);