Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/drm Initialize the drm_global stuff.



details:   https://anonhg.NetBSD.org/src/rev/75812f8a7dee
branches:  trunk
changeset: 330665:75812f8a7dee
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Jul 17 13:47:19 2014 +0000

description:
Initialize the drm_global stuff.

diffstat:

 sys/external/bsd/drm2/drm/drm_module.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r fc7236569f7a -r 75812f8a7dee sys/external/bsd/drm2/drm/drm_module.c
--- a/sys/external/bsd/drm2/drm/drm_module.c    Thu Jul 17 13:42:02 2014 +0000
+++ b/sys/external/bsd/drm2/drm/drm_module.c    Thu Jul 17 13:47:19 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_module.c,v 1.6 2014/07/16 20:56:25 riastradh Exp $ */
+/*     $NetBSD: drm_module.c,v 1.7 2014/07/17 13:47:19 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_module.c,v 1.6 2014/07/16 20:56:25 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_module.c,v 1.7 2014/07/17 13:47:19 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/device.h>
@@ -73,6 +73,7 @@
        idr_init(&drm_minors_idr);
        linux_mutex_init(&drm_global_mutex);
        drm_connector_ida_init();
+       drm_global_init();
 
        return 0;
 }
@@ -94,6 +95,7 @@
 drm_fini(void)
 {
 
+       drm_global_release();
        drm_connector_ida_destroy();
        linux_mutex_destroy(&drm_global_mutex);
        idr_destroy(&drm_minors_idr);



Home | Main Index | Thread Index | Old Index