diff options
author | Thierry Reding <treding@nvidia.com> | 2018-06-18 15:01:51 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2019-10-28 13:18:33 +0300 |
commit | caccddcfc4b4de75930df2e8f7fd0c66556b13ff (patch) | |
tree | bac6706f2105a3557acea1b2a634bc0e99c0fa21 /drivers/gpu/drm/tegra/gr2d.c | |
parent | 8f45f5071ad2be6ace6f77892e0015e89fd42028 (diff) | |
download | linux-caccddcfc4b4de75930df2e8f7fd0c66556b13ff.tar.xz |
gpu: host1x: Request channels for clients, not devices
A struct device doesn't carry much information that a channel might be
interested in, but the client very much does. Request channels for the
clients rather than their parent devices and store a pointer to them
in order to have that information available when needed.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/gr2d.c')
-rw-r--r-- | drivers/gpu/drm/tegra/gr2d.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/gr2d.c b/drivers/gpu/drm/tegra/gr2d.c index 641299cc85b8..3cbb4a029c41 100644 --- a/drivers/gpu/drm/tegra/gr2d.c +++ b/drivers/gpu/drm/tegra/gr2d.c @@ -40,7 +40,7 @@ static int gr2d_init(struct host1x_client *client) struct gr2d *gr2d = to_gr2d(drm); int err; - gr2d->channel = host1x_channel_request(client->dev); + gr2d->channel = host1x_channel_request(client); if (!gr2d->channel) return -ENOMEM; |