if (IS_ERR(sync_file->file))
                goto err;
 
-       kref_init(&sync_file->kref);
-
        init_waitqueue_head(&sync_file->wq);
 
        INIT_LIST_HEAD(&sync_file->cb.node);
 
 }
 
-static void sync_file_free(struct kref *kref)
+static int sync_file_release(struct inode *inode, struct file *file)
 {
-       struct sync_file *sync_file = container_of(kref, struct sync_file,
-                                                    kref);
+       struct sync_file *sync_file = file->private_data;
 
        if (test_bit(POLL_ENABLED, &sync_file->fence->flags))
                dma_fence_remove_callback(sync_file->fence, &sync_file->cb);
        dma_fence_put(sync_file->fence);
        kfree(sync_file);
-}
-
-static int sync_file_release(struct inode *inode, struct file *file)
-{
-       struct sync_file *sync_file = file->private_data;
 
-       kref_put(&sync_file->kref, sync_file_free);
        return 0;
 }
 
 
 #define _LINUX_SYNC_FILE_H
 
 #include <linux/types.h>
-#include <linux/kref.h>
 #include <linux/ktime.h>
 #include <linux/list.h>
 #include <linux/spinlock.h>
 /**
  * struct sync_file - sync file to export to the userspace
  * @file:              file representing this fence
- * @kref:              reference count on fence.
  * @name:              name of sync_file.  Useful for debugging
  * @sync_file_list:    membership in global file list
  * @wq:                        wait queue for fence signaling
  */
 struct sync_file {
        struct file             *file;
-       struct kref             kref;
        char                    name[32];
 #ifdef CONFIG_DEBUG_FS
        struct list_head        sync_file_list;