Commit 555ae37a authored by Dmitry Osipenko's avatar Dmitry Osipenko Committed by Thierry Reding

drm/tegra: submit: Remove pm_runtime_enabled() checks

Runtime PM is now universally available, make it mandatory by removing
the pm_runtime_enabled() checks.
Reviewed-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 28b16229
...@@ -504,10 +504,8 @@ static void release_job(struct host1x_job *job) ...@@ -504,10 +504,8 @@ static void release_job(struct host1x_job *job)
kfree(job_data->used_mappings); kfree(job_data->used_mappings);
kfree(job_data); kfree(job_data);
if (pm_runtime_enabled(client->base.dev)) { pm_runtime_mark_last_busy(client->base.dev);
pm_runtime_mark_last_busy(client->base.dev); pm_runtime_put_autosuspend(client->base.dev);
pm_runtime_put_autosuspend(client->base.dev);
}
} }
int tegra_drm_ioctl_channel_submit(struct drm_device *drm, void *data, int tegra_drm_ioctl_channel_submit(struct drm_device *drm, void *data,
...@@ -591,12 +589,10 @@ int tegra_drm_ioctl_channel_submit(struct drm_device *drm, void *data, ...@@ -591,12 +589,10 @@ int tegra_drm_ioctl_channel_submit(struct drm_device *drm, void *data,
} }
/* Boot engine. */ /* Boot engine. */
if (pm_runtime_enabled(context->client->base.dev)) { err = pm_runtime_resume_and_get(context->client->base.dev);
err = pm_runtime_resume_and_get(context->client->base.dev); if (err < 0) {
if (err < 0) { SUBMIT_ERR(context, "could not power up engine: %d", err);
SUBMIT_ERR(context, "could not power up engine: %d", err); goto unpin_job;
goto unpin_job;
}
} }
job->user_data = job_data; job->user_data = job_data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment