gpu: host1x: Cleanup on initialization failure
authorThierry Reding <treding@nvidia.com>
Wed, 8 Nov 2017 12:08:21 +0000 (13:08 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 13 Dec 2017 12:42:03 +0000 (13:42 +0100)
commit8f7da1578e90bf1af30269dc6dd8806c96e9c683
treeb5b2627f90afa9ae02ecd711e78b8200eef80cb5
parent1f876c3fceadecbb8753e9a351ae3591d0de610e
gpu: host1x: Cleanup on initialization failure

When an error happens during the initialization of one of the sub-
devices, make sure to properly cleanup all sub-devices that have been
initialized up to that point.

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