]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging/android: remove sync_fence_create_dma()
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Thu, 21 Jan 2016 12:49:24 +0000 (10:49 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 01:34:58 +0000 (17:34 -0800)
With the removal of struct sync_pt sync_fence_create_dma() now takes
the same arguments as sync_fence_create() so let's keep only
sync_fence_create().

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/sync.c
drivers/staging/android/sync.h

index b9f167ffdff5e7576e9d54fbc6c4f0de22bce0de..5fa4779a1956f81245c2a6f1c982133fcf2d9113 100644 (file)
@@ -174,7 +174,7 @@ static void fence_check_cb_func(struct fence *f, struct fence_cb *cb)
 }
 
 /* TODO: implement a create which takes more that one fence */
-struct sync_file *sync_file_create_dma(const char *name, struct fence *fence)
+struct sync_file *sync_file_create(const char *name, struct fence *fence)
 {
        struct sync_file *sync_file;
 
@@ -196,12 +196,6 @@ struct sync_file *sync_file_create_dma(const char *name, struct fence *fence)
 
        return sync_file;
 }
-EXPORT_SYMBOL(sync_file_create_dma);
-
-struct sync_file *sync_file_create(const char *name, struct fence *fence)
-{
-       return sync_file_create_dma(name, fence);
-}
 EXPORT_SYMBOL(sync_file_create);
 
 struct sync_file *sync_file_fdget(int fd)
index 8cdac1a12e4fc9bc6d3c1834372c9643644f809d..8980b5580fb38a60b81c6d61b62bd112e847f75a 100644 (file)
@@ -185,16 +185,6 @@ struct fence *sync_pt_create(struct sync_timeline *parent, int size);
  */
 struct sync_file *sync_file_create(const char *name, struct fence *fence);
 
-/**
- * sync_file_create_dma() - creates a sync file from dma-fence
- * @name:      name of file to create
- * @pt:        dma-fence to add to the file
- *
- * Creates a sync_file containg @pt.  Once this is called, the fence takes
- * ownership of @pt.
- */
-struct sync_file *sync_file_create_dma(const char *name, struct fence *pt);
-
 /*
  * API for sync_file consumers
  */