]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
gpu: host1x: Set OF node for new host1x devices
authorThierry Reding <treding@nvidia.com>
Fri, 20 Jan 2017 14:57:35 +0000 (15:57 +0100)
committerThierry Reding <treding@nvidia.com>
Mon, 30 Jan 2017 10:47:44 +0000 (11:47 +0100)
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>
drivers/gpu/host1x/bus.c

index c27858ae05529743f14e0e61104af96476a55ad3..eeb021fe64103c42bf1bc9bf693220a2f7fc7234 100644 (file)
@@ -399,6 +399,7 @@ static int host1x_device_add(struct host1x *host1x,
        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.of_node = host1x->dev->of_node;
        device->dev.bus = &host1x_bus_type;
        device->dev.parent = host1x->dev;