diff options
-rw-r--r-- | drivers/dma/amba-pl08x.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c index c7f7b82f6155..bebc678ed4fc 100644 --- a/drivers/dma/amba-pl08x.c +++ b/drivers/dma/amba-pl08x.c | |||
@@ -1129,6 +1129,9 @@ static int dma_set_runtime_config(struct dma_chan *chan, | |||
1129 | u32 cctl = 0; | 1129 | u32 cctl = 0; |
1130 | int i; | 1130 | int i; |
1131 | 1131 | ||
1132 | if (!plchan->slave) | ||
1133 | return -EINVAL; | ||
1134 | |||
1132 | /* Transfer direction */ | 1135 | /* Transfer direction */ |
1133 | plchan->runtime_direction = config->direction; | 1136 | plchan->runtime_direction = config->direction; |
1134 | if (config->direction == DMA_TO_DEVICE) { | 1137 | if (config->direction == DMA_TO_DEVICE) { |