diff options
Diffstat (limited to 'drivers/of/platform.c')
-rw-r--r-- | drivers/of/platform.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/of/platform.c b/drivers/of/platform.c index 7ba90c290a42..6c59673933e9 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c | |||
@@ -241,6 +241,10 @@ static struct amba_device *of_amba_device_create(struct device_node *node, | |||
241 | if (!dev) | 241 | if (!dev) |
242 | goto err_clear_flag; | 242 | goto err_clear_flag; |
243 | 243 | ||
244 | /* AMBA devices only support a single DMA mask */ | ||
245 | dev->dev.coherent_dma_mask = DMA_BIT_MASK(32); | ||
246 | dev->dev.dma_mask = &dev->dev.coherent_dma_mask; | ||
247 | |||
244 | /* setup generic device info */ | 248 | /* setup generic device info */ |
245 | dev->dev.of_node = of_node_get(node); | 249 | dev->dev.of_node = of_node_get(node); |
246 | dev->dev.fwnode = &node->fwnode; | 250 | dev->dev.fwnode = &node->fwnode; |