Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/drm Call drm_vblank_cleanup i...
details: https://anonhg.NetBSD.org/src/rev/e0e8f17e8b29
branches: riastradh-drm2
changeset: 788500:e0e8f17e8b29
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 04:05:00 2013 +0000
description:
Call drm_vblank_cleanup in drm_detach.
diffstat:
sys/external/bsd/drm2/drm/drm_drv.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r ca8c977cc6cd -r e0e8f17e8b29 sys/external/bsd/drm2/drm/drm_drv.c
--- a/sys/external/bsd/drm2/drm/drm_drv.c Wed Jul 24 04:04:45 2013 +0000
+++ b/sys/external/bsd/drm2/drm/drm_drv.c Wed Jul 24 04:05:00 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_drv.c,v 1.1.2.21 2013/07/24 04:01:37 riastradh Exp $ */
+/* $NetBSD: drm_drv.c,v 1.1.2.22 2013/07/24 04:05:00 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_drv.c,v 1.1.2.21 2013/07/24 04:01:37 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_drv.c,v 1.1.2.22 2013/07/24 04:05:00 riastradh Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -349,6 +349,12 @@
if (dev->driver->unload != NULL)
(*dev->driver->unload)(dev);
+ /*
+ * XXX Either this shouldn't be here, or the driver's load
+ * function shouldn't be responsible for drm_vblank_init.
+ */
+ drm_vblank_cleanup(dev);
+
drm_undo_fill_in_dev(dev);
return 0;
Home |
Main Index |
Thread Index |
Old Index