diff options
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/pl330.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 28e3775888a6..4a2caaa0432e 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c | |||
@@ -2748,8 +2748,10 @@ probe_err3: | |||
2748 | list_del(&pch->chan.device_node); | 2748 | list_del(&pch->chan.device_node); |
2749 | 2749 | ||
2750 | /* Flush the channel */ | 2750 | /* Flush the channel */ |
2751 | pl330_control(&pch->chan, DMA_TERMINATE_ALL, 0); | 2751 | if (pch->thread) { |
2752 | pl330_free_chan_resources(&pch->chan); | 2752 | pl330_control(&pch->chan, DMA_TERMINATE_ALL, 0); |
2753 | pl330_free_chan_resources(&pch->chan); | ||
2754 | } | ||
2753 | } | 2755 | } |
2754 | probe_err2: | 2756 | probe_err2: |
2755 | pl330_del(pl330); | 2757 | pl330_del(pl330); |