From f2a0c5438dc83171de1007a68e4f98e35b5a8fbe Mon Sep 17 00:00:00 2001 From: Leif Delgass Date: Sat, 26 Apr 2003 22:28:56 +0000 Subject: Ensure driver has been initialized (dev_private != NULL) before installing irq handler in DRM(irq_install). Modify all drivers to ensure irq handler is removed before cleanup and cleanup is called at takedown. Remove unused buffer private struct fields in i810, i830. Check for lock on init/cleanup in all drivers except i810/i830. The current DDX for i810 and i830 doesn't hold the lock on kernel init (FIXME?). --- linux/gamma_drv.h | 1 + 1 file changed, 1 insertion(+) (limited to 'linux/gamma_drv.h') diff --git a/linux/gamma_drv.h b/linux/gamma_drv.h index fc91993f..fc78a11a 100644 --- a/linux/gamma_drv.h +++ b/linux/gamma_drv.h @@ -49,6 +49,7 @@ extern int gamma_dma_init( struct inode *inode, struct file *filp, extern int gamma_dma_copy( struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg ); +extern int gamma_do_cleanup_dma( drm_device_t *dev ); extern void gamma_dma_ready(drm_device_t *dev); extern void gamma_dma_quiescent_single(drm_device_t *dev); extern void gamma_dma_quiescent_dual(drm_device_t *dev); -- cgit v1.2.3