From: Emil Velikov Date: Wed, 22 May 2019 16:41:15 +0000 (+0100) Subject: vmwgfx: drop empty lastclose stub X-Git-Tag: v5.4-rc1~106^2~18^2~308 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=3cd74023ea185fee2de49d20d6881252a89695fa;p=linux.git vmwgfx: drop empty lastclose stub Core DRM is safe when the callback is NULL. Cc: VMware Graphics Cc: Thomas Hellstrom Cc: Daniel Vetter Signed-off-by: Emil Velikov Reviewed-by: Thomas Hellstrom Link: https://patchwork.freedesktop.org/patch/msgid/20190522164119.24139-1-emil.l.velikov@gmail.com --- diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c index 89b8eb047583..45d7fc7c477d 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c @@ -1177,10 +1177,6 @@ static long vmw_compat_ioctl(struct file *filp, unsigned int cmd, } #endif -static void vmw_lastclose(struct drm_device *dev) -{ -} - static void vmw_master_init(struct vmw_master *vmaster) { ttm_lock_init(&vmaster->lock); @@ -1551,7 +1547,6 @@ static struct drm_driver driver = { DRIVER_MODESET | DRIVER_RENDER | DRIVER_ATOMIC, .load = vmw_driver_load, .unload = vmw_driver_unload, - .lastclose = vmw_lastclose, .get_vblank_counter = vmw_get_vblank_counter, .enable_vblank = vmw_enable_vblank, .disable_vblank = vmw_disable_vblank,