Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59ce062e authored by Sascha Hauer's avatar Sascha Hauer Committed by Dave Airlie
Browse files

drm crtc: add forgotten idr cleanup functions



drm_mode_config_init initializes the idr with idr_init, so
add the missing counterparts in drm_mode_config_cleanup.

Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent f2746f83
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1048,6 +1048,9 @@ void drm_mode_config_cleanup(struct drm_device *dev)
				 head) {
		plane->funcs->destroy(plane);
	}

	idr_remove_all(&dev->mode_config.crtc_idr);
	idr_destroy(&dev->mode_config.crtc_idr);
}
EXPORT_SYMBOL(drm_mode_config_cleanup);