Commit d66dfcf8 authored by Thierry Reding's avatar Thierry Reding

drm/tegra: Run hub cleanup on ->remove()

The call to tegra_display_hub_cleanup() that takes care of disabling the
window groups is missing from the driver's ->remove() callback. Call it
to make sure the runtime PM reference counts for the display controllers
are balanced.
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent b06e145f
...@@ -1241,6 +1241,9 @@ static int host1x_drm_remove(struct host1x_device *dev) ...@@ -1241,6 +1241,9 @@ static int host1x_drm_remove(struct host1x_device *dev)
drm_atomic_helper_shutdown(drm); drm_atomic_helper_shutdown(drm);
drm_mode_config_cleanup(drm); drm_mode_config_cleanup(drm);
if (tegra->hub)
tegra_display_hub_cleanup(tegra->hub);
err = host1x_device_exit(dev); err = host1x_device_exit(dev);
if (err < 0) if (err < 0)
dev_err(&dev->dev, "host1x device cleanup failed: %d\n", err); dev_err(&dev->dev, "host1x device cleanup failed: %d\n", err);
......
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