diff options
Diffstat (limited to 'drivers/rpmsg')
-rw-r--r-- | drivers/rpmsg/virtio_rpmsg_bus.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c b/drivers/rpmsg/virtio_rpmsg_bus.c index 75506ec2840e..691e52ec48d9 100644 --- a/drivers/rpmsg/virtio_rpmsg_bus.c +++ b/drivers/rpmsg/virtio_rpmsg_bus.c | |||
@@ -911,7 +911,8 @@ static int rpmsg_probe(struct virtio_device *vdev) | |||
911 | vrp->svq = vqs[1]; | 911 | vrp->svq = vqs[1]; |
912 | 912 | ||
913 | /* allocate coherent memory for the buffers */ | 913 | /* allocate coherent memory for the buffers */ |
914 | bufs_va = dma_alloc_coherent(vdev->dev.parent, RPMSG_TOTAL_BUF_SPACE, | 914 | bufs_va = dma_alloc_coherent(vdev->dev.parent->parent, |
915 | RPMSG_TOTAL_BUF_SPACE, | ||
915 | &vrp->bufs_dma, GFP_KERNEL); | 916 | &vrp->bufs_dma, GFP_KERNEL); |
916 | if (!bufs_va) | 917 | if (!bufs_va) |
917 | goto vqs_del; | 918 | goto vqs_del; |