]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
gpu: host1x: Call of_dma_configure() after setting bus
authorMikko Perttunen <mperttunen@nvidia.com>
Sun, 24 Sep 2017 09:04:53 +0000 (12:04 +0300)
committerThierry Reding <treding@nvidia.com>
Fri, 20 Oct 2017 12:19:51 +0000 (14:19 +0200)
of_dma_configure() now checks the device's bus before configuring it, so
we need to set the device's bus before calling.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/bus.c

index f9cde03030fd9042bea5a4528854b786cdd0451a..66ea5acee820fa637883e635cef698804c800dc9 100644 (file)
@@ -403,12 +403,13 @@ 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.of_node = host1x->dev->of_node;
        device->dev.bus = &host1x_bus_type;
        device->dev.parent = host1x->dev;
 
+       of_dma_configure(&device->dev, host1x->dev->of_node);
+
        err = host1x_device_parse_dt(device, driver);
        if (err < 0) {
                kfree(device);