diff options
Diffstat (limited to 'drivers/dma/amba-pl08x.c')
-rw-r--r-- | drivers/dma/amba-pl08x.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c index fce46c5bf1c7..e51a9832ef0d 100644 --- a/drivers/dma/amba-pl08x.c +++ b/drivers/dma/amba-pl08x.c | |||
@@ -2055,6 +2055,11 @@ static int pl08x_probe(struct amba_device *adev, const struct amba_id *id) | |||
2055 | if (ret) | 2055 | if (ret) |
2056 | return ret; | 2056 | return ret; |
2057 | 2057 | ||
2058 | /* Ensure that we can do DMA */ | ||
2059 | ret = dma_set_mask_and_coherent(&adev->dev, DMA_BIT_MASK(32)); | ||
2060 | if (ret) | ||
2061 | goto out_no_pl08x; | ||
2062 | |||
2058 | /* Create the driver state holder */ | 2063 | /* Create the driver state holder */ |
2059 | pl08x = kzalloc(sizeof(*pl08x), GFP_KERNEL); | 2064 | pl08x = kzalloc(sizeof(*pl08x), GFP_KERNEL); |
2060 | if (!pl08x) { | 2065 | if (!pl08x) { |