summaryrefslogtreecommitdiff
path: root/drivers/dma/dma-uclass.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/dma-uclass.c')
-rw-r--r--drivers/dma/dma-uclass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/dma-uclass.c b/drivers/dma/dma-uclass.c
index 5598bca21c..a0159d7888 100644
--- a/drivers/dma/dma-uclass.c
+++ b/drivers/dma/dma-uclass.c
@@ -122,10 +122,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)