diff options
author | Stefan Schake <stschake@gmail.com> | 2018-04-18 13:40:19 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2018-05-04 12:37:03 +0300 |
commit | b1a3dc0b85bde4d8d549ea3aa31106b599694f37 (patch) | |
tree | 254cfed34fbf7de01f2bc99aace43218a3bacaf9 | |
parent | 60cc43fc888428bb2f18f08997432d426a243338 (diff) | |
download | linux-b1a3dc0b85bde4d8d549ea3aa31106b599694f37.tar.xz |
drm/tegra: hub: Use state directly
Using drm_atomic_get_private_obj_state() after state has been swapped
will return old state.
Fixes: 0281c4149021 ("drm/tegra: hub: Use private object for global state")
Signed-off-by: Stefan Schake <stschake@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r-- | drivers/gpu/drm/tegra/hub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/hub.c b/drivers/gpu/drm/tegra/hub.c index 9a3f23d4780f..8f4fcbb515fb 100644 --- a/drivers/gpu/drm/tegra/hub.c +++ b/drivers/gpu/drm/tegra/hub.c @@ -687,7 +687,7 @@ void tegra_display_hub_atomic_commit(struct drm_device *drm, struct device *dev = hub->client.dev; int err; - hub_state = tegra_display_hub_get_state(hub, state); + hub_state = to_tegra_display_hub_state(hub->base.state); if (hub_state->clk) { err = clk_set_rate(hub_state->clk, hub_state->rate); |