gpu: host1x: Split up client initalization and registration
authorThierry Reding <treding@nvidia.com>
Thu, 1 Apr 2021 15:41:04 +0000 (17:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jun 2021 08:00:04 +0000 (10:00 +0200)
commit9c1d492baa9128b970524b9baa4b9baa7dc01c64
tree1125ad2da2904d7f3d6113fd7650ed5d78d9fdce
parent570b3e4020f2aa7ab6908042e7f3a41ab24ce261
gpu: host1x: Split up client initalization and registration

[ Upstream commit 0cfe5a6e758fb20be8ad3e8f10cb087cc8033eeb ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/host1x/bus.c
include/linux/host1x.h