drm: tegra: don't leave clients host1x member uninitialized
authorLucas Stach <dev@lynxeye.de>
Wed, 19 Dec 2012 21:38:53 +0000 (21:38 +0000)
committerDave Airlie <airlied@redhat.com>
Sun, 30 Dec 2012 04:01:32 +0000 (14:01 +1000)
No real problem for now, as nothing is using this, but leaving it
unitialized is asking for trouble later on.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/tegra/host1x.c

index bdb97a564d8201fd6dc367eb15dd65551fef3cdd..5d17b113a6fc7d2618e409c735c4273d3ade6c8a 100644 (file)
@@ -239,6 +239,8 @@ int host1x_register_client(struct host1x *host1x, struct host1x_client *client)
                }
        }
 
+       client->host1x = host1x;
+
        return 0;
 }