summaryrefslogtreecommitdiff
path: root/shared/radeon.h
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2003-01-02 18:38:07 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2003-01-02 18:38:07 +0000
commit208c0779b65242159bbb87153269faef9370670c (patch)
tree478f4b427dbdc6c1be7e8ccab178acf50a73465c /shared/radeon.h
parentab9eb685c002bc875e9a7d81b7ac7bd5fd0be1d4 (diff)
Make the radeon drm module better at cleaning up after itself if all the
clients (particularly the X server) exit without doing so for it.
Diffstat (limited to 'shared/radeon.h')
-rw-r--r--shared/radeon.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/shared/radeon.h b/shared/radeon.h
index fe71687a..caf6aee0 100644
--- a/shared/radeon.h
+++ b/shared/radeon.h
@@ -127,6 +127,12 @@
} \
} while (0)
+#define __HAVE_RELEASE 1
+#define DRIVER_RELEASE() do { \
+ if ( dev->open_count == 1) \
+ radeon_do_release( dev ); \
+ } while (0)
+
/* On unloading the module:
* - Free memory heap structure
* - Remove mappings made at startup and free dev_private.