diff options
Diffstat (limited to 'drivers/of')
-rw-r--r-- | drivers/of/platform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/of/platform.c b/drivers/of/platform.c index e75af391e286..ed5a6d3c26aa 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c | |||
@@ -162,7 +162,7 @@ struct platform_device *of_device_alloc(struct device_node *np, | |||
162 | } | 162 | } |
163 | 163 | ||
164 | dev->dev.of_node = of_node_get(np); | 164 | dev->dev.of_node = of_node_get(np); |
165 | #if defined(CONFIG_PPC) || defined(CONFIG_MICROBLAZE) | 165 | #if defined(CONFIG_MICROBLAZE) |
166 | dev->dev.dma_mask = &dev->archdata.dma_mask; | 166 | dev->dev.dma_mask = &dev->archdata.dma_mask; |
167 | #endif | 167 | #endif |
168 | dev->dev.parent = parent; | 168 | dev->dev.parent = parent; |
@@ -201,7 +201,7 @@ struct platform_device *of_platform_device_create_pdata( | |||
201 | if (!dev) | 201 | if (!dev) |
202 | return NULL; | 202 | return NULL; |
203 | 203 | ||
204 | #if defined(CONFIG_PPC) || defined(CONFIG_MICROBLAZE) | 204 | #if defined(CONFIG_MICROBLAZE) |
205 | dev->archdata.dma_mask = 0xffffffffUL; | 205 | dev->archdata.dma_mask = 0xffffffffUL; |
206 | #endif | 206 | #endif |
207 | dev->dev.coherent_dma_mask = DMA_BIT_MASK(32); | 207 | dev->dev.coherent_dma_mask = DMA_BIT_MASK(32); |