summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_drv.c
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2013-08-07 22:34:48 -0400
committerDave Airlie <airlied@redhat.com>2013-08-19 10:40:31 +1000
commitb21e3afe2357c0f49348a5fb61247012bf8262ec (patch)
tree1d1e06b848236bb3b0f766d0b401eecbaee80b1c /drivers/gpu/drm/drm_drv.c
parentddcd09d62bd503bfd33291348b7cd8ad32d413fd (diff)
downloadtalos-obmc-linux-b21e3afe2357c0f49348a5fb61247012bf8262ec.tar.gz
talos-obmc-linux-b21e3afe2357c0f49348a5fb61247012bf8262ec.zip
drm: use ida to allocate connector ids
This makes it so that reloading a module does not cause all the connector ids to change, which are user-visible and sometimes used for configuration. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_drv.c')
-rw-r--r--drivers/gpu/drm/drm_drv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
index 5b949a736712..d97976cc51cd 100644
--- a/drivers/gpu/drm/drm_drv.c
+++ b/drivers/gpu/drm/drm_drv.c
@@ -226,6 +226,7 @@ static int __init drm_core_init(void)
int ret = -ENOMEM;
drm_global_init();
+ drm_connector_ida_init();
idr_init(&drm_minors_idr);
if (register_chrdev(DRM_MAJOR, "drm", &drm_stub_fops))
@@ -273,6 +274,7 @@ static void __exit drm_core_exit(void)
unregister_chrdev(DRM_MAJOR, "drm");
+ drm_connector_ida_destroy();
idr_destroy(&drm_minors_idr);
}
OpenPOWER on IntegriCloud