X-Git-Url: http://git.monstr.eu/?p=linux-2.6-microblaze.git;a=blobdiff_plain;f=Documentation%2Fdriver-api%2Fdmaengine%2Fclient.rst;h=bfd057b21a0000f704cfbd5a2ce26f37075642e6;hp=09a3f66dcd263e4e366eb49cb489b6d7455ec648;hb=555a6e8c11e6282bb2704ef1cee64ceaeb41773e;hpb=643e69aff89a2d0abc53979acc441b68ce86139b diff --git a/Documentation/driver-api/dmaengine/client.rst b/Documentation/driver-api/dmaengine/client.rst index 09a3f66dcd26..bfd057b21a00 100644 --- a/Documentation/driver-api/dmaengine/client.rst +++ b/Documentation/driver-api/dmaengine/client.rst @@ -120,7 +120,9 @@ The details of these operations are: .. code-block:: c - nr_sg = dma_map_sg(chan->device->dev, sgl, sg_len); + struct device *dma_dev = dmaengine_get_dma_device(chan); + + nr_sg = dma_map_sg(dma_dev, sgl, sg_len); if (nr_sg == 0) /* error */