From 208c0779b65242159bbb87153269faef9370670c Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 2 Jan 2003 18:38:07 +0000 Subject: 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. --- shared/radeon.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'shared/radeon.h') 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. -- cgit v1.2.3