]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: android: ion: fix ion_dma_buf_attach signatur
authorChristian König <christian.koenig@amd.com>
Wed, 20 Jun 2018 18:48:59 +0000 (20:48 +0200)
committerChristian König <easy2remember.chk@googlemail.com>
Thu, 21 Jun 2018 09:46:47 +0000 (11:46 +0200)
Fixup for "dma_buf: remove device parameter from attach callback v2".

I missed this driver, sorry for the noise. Patch is not even compile
tested.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/230641/
drivers/staging/android/ion/ion.c

index a5220445b5e8f2c0625fa2f6293b82728b7f5411..3d4d35558937a8ad827f22d09ad4332143c7de3a 100644 (file)
@@ -201,7 +201,7 @@ struct ion_dma_buf_attachment {
        struct list_head list;
 };
 
-static int ion_dma_buf_attach(struct dma_buf *dmabuf, struct device *dev,
+static int ion_dma_buf_attach(struct dma_buf *dmabuf,
                              struct dma_buf_attachment *attachment)
 {
        struct ion_dma_buf_attachment *a;
@@ -219,7 +219,7 @@ static int ion_dma_buf_attach(struct dma_buf *dmabuf, struct device *dev,
        }
 
        a->table = table;
-       a->dev = dev;
+       a->dev = attachment->dev;
        INIT_LIST_HEAD(&a->list);
 
        attachment->priv = a;