Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Thierry Reding <treding@nvidia.com>

+3
+3
drivers/gpu/drm/tegra/drm.c
··· 1241 1241 drm_atomic_helper_shutdown(drm); 1242 1242 drm_mode_config_cleanup(drm); 1243 1243 1244 + if (tegra->hub) 1245 + tegra_display_hub_cleanup(tegra->hub); 1246 + 1244 1247 err = host1x_device_exit(dev); 1245 1248 if (err < 0) 1246 1249 dev_err(&dev->dev, "host1x device cleanup failed: %d\n", err);