|
@@ -2,6 +2,7 @@
|
|
|
#include <linux/string.h>
|
|
|
#include <linux/kernel.h>
|
|
|
#include <linux/of.h>
|
|
|
+#include <linux/dma-mapping.h>
|
|
|
#include <linux/init.h>
|
|
|
#include <linux/export.h>
|
|
|
#include <linux/mod_devicetable.h>
|
|
@@ -675,6 +676,8 @@ static struct platform_device * __init scan_one_device(struct device_node *dp,
|
|
|
dev_set_name(&op->dev, "root");
|
|
|
else
|
|
|
dev_set_name(&op->dev, "%08x", dp->phandle);
|
|
|
+ op->dev.coherent_dma_mask = DMA_BIT_MASK(32);
|
|
|
+ op->dev.dma_mask = &op->dev.coherent_dma_mask;
|
|
|
|
|
|
if (of_device_register(op)) {
|
|
|
printk("%s: Could not register of device.\n",
|