summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/rpmsg/virtio_rpmsg_bus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c b/drivers/rpmsg/virtio_rpmsg_bus.c
index 664f957012cd..5c892019ce89 100644
--- a/drivers/rpmsg/virtio_rpmsg_bus.c
+++ b/drivers/rpmsg/virtio_rpmsg_bus.c
@@ -912,7 +912,7 @@ static int rpmsg_probe(struct virtio_device *vdev)
912 total_buf_space = vrp->num_bufs * vrp->buf_size; 912 total_buf_space = vrp->num_bufs * vrp->buf_size;
913 913
914 /* allocate coherent memory for the buffers */ 914 /* allocate coherent memory for the buffers */
915 bufs_va = dma_alloc_coherent(vdev->dev.parent->parent, 915 bufs_va = dma_alloc_coherent(vdev->dev.parent,
916 total_buf_space, &vrp->bufs_dma, 916 total_buf_space, &vrp->bufs_dma,
917 GFP_KERNEL); 917 GFP_KERNEL);
918 if (!bufs_va) { 918 if (!bufs_va) {
@@ -980,7 +980,7 @@ static int rpmsg_probe(struct virtio_device *vdev)
980 return 0; 980 return 0;
981 981
982free_coherent: 982free_coherent:
983 dma_free_coherent(vdev->dev.parent->parent, total_buf_space, 983 dma_free_coherent(vdev->dev.parent, total_buf_space,
984 bufs_va, vrp->bufs_dma); 984 bufs_va, vrp->bufs_dma);
985vqs_del: 985vqs_del:
986 vdev->config->del_vqs(vrp->vdev); 986 vdev->config->del_vqs(vrp->vdev);
@@ -1015,7 +1015,7 @@ static void rpmsg_remove(struct virtio_device *vdev)
1015 1015
1016 vdev->config->del_vqs(vrp->vdev); 1016 vdev->config->del_vqs(vrp->vdev);
1017 1017
1018 dma_free_coherent(vdev->dev.parent->parent, total_buf_space, 1018 dma_free_coherent(vdev->dev.parent, total_buf_space,
1019 vrp->rbufs, vrp->bufs_dma); 1019 vrp->rbufs, vrp->bufs_dma);
1020 1020
1021 kfree(vrp); 1021 kfree(vrp);