Skip to content

Commit

Permalink
staging: android: ion: fix ion_dma_buf_attach signatur
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
Christian König authored and Christian König committed Jun 21, 2018
1 parent f55786f commit c612ae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/android/ion/ion.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit c612ae0

Please sign in to comment.