diff options
author | Peter Chen <peter.chen@freescale.com> | 2012-01-16 16:52:50 +0800 |
---|---|---|
committer | Eric Miao <eric.miao@linaro.org> | 2012-01-17 10:42:11 +0800 |
commit | de941f9ac0b59c34053618e90e3c1f1d8b5a2d22 (patch) | |
tree | 9a619ef38d2f3895c873b8dc6ee807c3336a31e3 | |
parent | 436df16bff674affc8987ceef5c04417902539b1 (diff) |
dts: fix the bug that the device's dma_mask is NULL
Temp solution for giving a meaningful value for device's dma_mask
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Eric Miao <eric.miao@linaro.org>
-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 63b3ec48c20..979396c545c 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c @@ -205,6 +205,8 @@ struct platform_device *of_platform_device_create_pdata( dev->archdata.dma_mask = 0xffffffffUL; #endif dev->dev.coherent_dma_mask = DMA_BIT_MASK(32); + /* Temp solution for giving a meaningful value for device's dma_mask */ + dev->dev.dma_mask = &dev->dev.coherent_dma_mask; dev->dev.bus = &platform_bus_type; dev->dev.platform_data = platform_data; |