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)
commit0cfe5a6e758fb20be8ad3e8f10cb087cc8033eeb
tree9730afa524d310190de8b9ad3911dead574cc8ab
parent73a395c46704304b96bc5e2ee19be31124025c0c
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