Commit b1a3dc0b authored by Stefan Schake's avatar Stefan Schake Committed by Thierry Reding

drm/tegra: hub: Use state directly

Using drm_atomic_get_private_obj_state() after state has been swapped
will return old state.

Fixes: 0281c414 ("drm/tegra: hub: Use private object for global state")
Signed-off-by: default avatarStefan Schake <stschake@gmail.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 60cc43fc
......@@ -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);
......
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