aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2017-01-20 09:57:35 -0500
committerThierry Reding <treding@nvidia.com>2017-01-30 05:47:44 -0500
commit7b1d4185050d204d638166e62b85c26c81326eff (patch)
treefdcd71d8a0bc0e60ecb08e1098b3b36c98d11ed5
parent7ce7d89f48834cefece7804d38fc5d85382edf77 (diff)
gpu: host1x: Set OF node for new host1x devices
We use the OF node of the host1x device's parent because it's the closest we have. Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--drivers/gpu/host1x/bus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/host1x/bus.c b/drivers/gpu/host1x/bus.c
index c27858ae0552..eeb021fe6410 100644
--- a/drivers/gpu/host1x/bus.c
+++ b/drivers/gpu/host1x/bus.c
@@ -399,6 +399,7 @@ static int host1x_device_add(struct host1x *host1x,
399 dev_set_name(&device->dev, "%s", driver->driver.name); 399 dev_set_name(&device->dev, "%s", driver->driver.name);
400 of_dma_configure(&device->dev, host1x->dev->of_node); 400 of_dma_configure(&device->dev, host1x->dev->of_node);
401 device->dev.release = host1x_device_release; 401 device->dev.release = host1x_device_release;
402 device->dev.of_node = host1x->dev->of_node;
402 device->dev.bus = &host1x_bus_type; 403 device->dev.bus = &host1x_bus_type;
403 device->dev.parent = host1x->dev; 404 device->dev.parent = host1x->dev;
404 405