.driver.pm = &ast_pm_ops,
 };
 
-static const struct file_operations ast_fops = {
-       .owner = THIS_MODULE,
-       DRM_VRAM_MM_FILE_OPERATIONS
-};
+DEFINE_DRM_GEM_FOPS(ast_fops);
 
 static struct drm_driver driver = {
        .driver_features = DRIVER_MODESET | DRIVER_GEM,
 
        return ret;
 }
 
-static const struct file_operations bochs_fops = {
-       .owner          = THIS_MODULE,
-       DRM_VRAM_MM_FILE_OPERATIONS
-};
+DEFINE_DRM_GEM_FOPS(bochs_fops);
 
 static struct drm_driver bochs_driver = {
        .driver_features        = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC,
 
 #include "hibmc_drm_drv.h"
 #include "hibmc_drm_regs.h"
 
-static const struct file_operations hibmc_fops = {
-       .owner          = THIS_MODULE,
-       DRM_VRAM_MM_FILE_OPERATIONS
-};
+DEFINE_DRM_GEM_FOPS(hibmc_fops);
 
 static irqreturn_t hibmc_drm_interrupt(int irq, void *arg)
 {
 
        drm_put_dev(dev);
 }
 
-static const struct file_operations mgag200_driver_fops = {
-       .owner = THIS_MODULE,
-       DRM_VRAM_MM_FILE_OPERATIONS
-};
+DEFINE_DRM_GEM_FOPS(mgag200_driver_fops);
 
 static struct drm_driver driver = {
        .driver_features = DRIVER_GEM | DRIVER_MODESET,
 
 #endif
 };
 
-static const struct file_operations vbox_fops = {
-       .owner = THIS_MODULE,
-       DRM_VRAM_MM_FILE_OPERATIONS
-};
+DEFINE_DRM_GEM_FOPS(vbox_fops);
 
 static struct drm_driver driver = {
        .driver_features =
 
        struct drm_device *dev, uint64_t vram_base, size_t vram_size);
 void drm_vram_helper_release_mm(struct drm_device *dev);
 
-/**
- * define DRM_VRAM_MM_FILE_OPERATIONS - default callback functions for \
-       &struct file_operations
- *
- * Drivers that use VRAM MM can use this macro to initialize
- * &struct file_operations with default functions.
- */
-#define DRM_VRAM_MM_FILE_OPERATIONS \
-       .llseek         = no_llseek, \
-       .read           = drm_read, \
-       .poll           = drm_poll, \
-       .unlocked_ioctl = drm_ioctl, \
-       .compat_ioctl   = drm_compat_ioctl, \
-       .mmap           = drm_gem_mmap, \
-       .open           = drm_open, \
-       .release        = drm_release \
-
-
 #endif