sifive: reset: add DM based reset driver for SiFive SoC's
[platform/kernel/u-boot.git] / drivers / dma / dma-uclass.c
index 5598bca..8cbb364 100644 (file)
@@ -12,6 +12,9 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <log.h>
+#include <malloc.h>
+#include <asm/cache.h>
 #include <dm/read.h>
 #include <dma-uclass.h>
 #include <dt-structs.h>
@@ -122,10 +125,10 @@ int dma_free(struct dma *dma)
 
        debug("%s(dma=%p)\n", __func__, dma);
 
-       if (!ops->free)
+       if (!ops->rfree)
                return 0;
 
-       return ops->free(dma);
+       return ops->rfree(dma);
 }
 
 int dma_enable(struct dma *dma)