colibri_imx6: fix video stdout in default environment
[oweals/u-boot.git] / drivers / dma / sandbox-dma-test.c
index 8fcef1863e242f45962526364045b59973db9019..838596b24b671e870ed38d11cd2a64c6733e79f3 100644 (file)
@@ -9,6 +9,8 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
+#include <malloc.h>
 #include <dm/read.h>
 #include <dma-uclass.h>
 #include <dt-structs.h>
@@ -88,7 +90,7 @@ static int sandbox_dma_request(struct dma *dma)
        return 0;
 }
 
-static int sandbox_dma_free(struct dma *dma)
+static int sandbox_dma_rfree(struct dma *dma)
 {
        struct sandbox_dma_dev *ud = dev_get_priv(dma->dev);
        struct sandbox_dma_chan *uc;
@@ -229,7 +231,7 @@ static const struct dma_ops sandbox_dma_ops = {
        .transfer       = sandbox_dma_transfer,
        .of_xlate       = sandbox_dma_of_xlate,
        .request        = sandbox_dma_request,
-       .free           = sandbox_dma_free,
+       .rfree          = sandbox_dma_rfree,
        .enable         = sandbox_dma_enable,
        .disable        = sandbox_dma_disable,
        .send           = sandbox_dma_send,