|
|
@@ -18,6 +18,7 @@
|
|
|
#include <linux/host1x.h>
|
|
|
#include <linux/of.h>
|
|
|
#include <linux/slab.h>
|
|
|
+#include <linux/of_device.h>
|
|
|
|
|
|
#include "bus.h"
|
|
|
#include "dev.h"
|
|
|
@@ -394,6 +395,7 @@ static int host1x_device_add(struct host1x *host1x,
|
|
|
device->dev.coherent_dma_mask = host1x->dev->coherent_dma_mask;
|
|
|
device->dev.dma_mask = &device->dev.coherent_dma_mask;
|
|
|
dev_set_name(&device->dev, "%s", driver->driver.name);
|
|
|
+ of_dma_configure(&device->dev, host1x->dev->of_node);
|
|
|
device->dev.release = host1x_device_release;
|
|
|
device->dev.bus = &host1x_bus_type;
|
|
|
device->dev.parent = host1x->dev;
|