diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2013-08-08 06:34:48 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-08-19 04:40:31 +0400 |
commit | b21e3afe2357c0f49348a5fb61247012bf8262ec (patch) | |
tree | 1d1e06b848236bb3b0f766d0b401eecbaee80b1c /drivers/gpu/drm/drm_drv.c | |
parent | ddcd09d62bd503bfd33291348b7cd8ad32d413fd (diff) | |
download | linux-b21e3afe2357c0f49348a5fb61247012bf8262ec.tar.xz |
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.c | 2 |
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); } |