]> www.infradead.org Git - users/jedix/linux-maple.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>
Thu, 8 Apr 2021 13:30:49 +0000 (15:30 +0200)
commitf566b65628473045cce57e92e9bef027e3685936
tree09dd861f2d38011da06f7308ad306338d5730a3a
parentd450fdb8fa01c6c3953e7df6ce843c70df5f97d4
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