diff options
Diffstat (limited to 'drivers/of/platform.c')
-rw-r--r-- | drivers/of/platform.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/of/platform.c b/drivers/of/platform.c index f6dcde220821..fce088e6f54e 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c | |||
@@ -215,6 +215,8 @@ static struct platform_device *of_platform_device_create_pdata( | |||
215 | dev->archdata.dma_mask = 0xffffffffUL; | 215 | dev->archdata.dma_mask = 0xffffffffUL; |
216 | #endif | 216 | #endif |
217 | dev->dev.coherent_dma_mask = DMA_BIT_MASK(32); | 217 | dev->dev.coherent_dma_mask = DMA_BIT_MASK(32); |
218 | if (!dev->dev.dma_mask) | ||
219 | dev->dev.dma_mask = &dev->dev.coherent_dma_mask; | ||
218 | dev->dev.bus = &platform_bus_type; | 220 | dev->dev.bus = &platform_bus_type; |
219 | dev->dev.platform_data = platform_data; | 221 | dev->dev.platform_data = platform_data; |
220 | 222 | ||