Merge tag 'remoteproc-for-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/ohad...
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / rpmsg / virtio_rpmsg_bus.c
index f56c8ba3a861cda16870e7456391fe564ec741c6..590cfafc7c172ce8a2d3230de12057a85dfaa7d0 100644 (file)
@@ -956,7 +956,8 @@ static int rpmsg_probe(struct virtio_device *vdev)
        vrp->svq = vqs[1];
 
        /* allocate coherent memory for the buffers */
-       bufs_va = dma_alloc_coherent(vdev->dev.parent, RPMSG_TOTAL_BUF_SPACE,
+       bufs_va = dma_alloc_coherent(vdev->dev.parent->parent,
+                               RPMSG_TOTAL_BUF_SPACE,
                                &vrp->bufs_dma, GFP_KERNEL);
        if (!bufs_va)
                goto vqs_del;