]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: host1x: Split up client initalization and registration
authorThierry Reding <treding@nvidia.com>
Thu, 1 Apr 2021 15:41:04 +0000 (17:41 +0200)
committerThierry Reding <treding@nvidia.com>
Mon, 17 May 2021 10:31:05 +0000 (12:31 +0200)
commitb8415645b7398b19340e03e2e0d4990a69b5ce96
tree9730afa524d310190de8b9ad3911dead574cc8ab
parent5f0c76a0e36a13ceec33e0d678bb87f97291428e
gpu: host1x: Split up client initalization and registration

In some cases we may need to initialize the host1x client first before
registering it. This commit adds a new helper that will do nothing but
the initialization of the data structure.

At the same time, the initialization is removed from the registration
function. Note, however, that for simplicity we explicitly initialize
the client when the host1x_client_register() function is called, as
opposed to the low-level __host1x_client_register() function. This
allows existing callers to remain unchanged.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/bus.c
include/linux/host1x.h