]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: host1x: Call ->remove() only when a device is bound
authorThierry Reding <treding@nvidia.com>
Wed, 5 Nov 2014 10:43:26 +0000 (11:43 +0100)
committerThierry Reding <treding@nvidia.com>
Fri, 23 Jan 2015 11:07:00 +0000 (12:07 +0100)
commit2ee702b1797197f2b2098fcbccc71d87ff7857b8
tree142cc1db3c1d1cb714d6c14b3217764475636bc9
parent8c2b783919514fb3226c3b8b0f96d799af22d402
gpu: host1x: Call ->remove() only when a device is bound

When a driver's ->probe() function fails, the host1x bus must not call
its ->remove() function because the driver will already have cleaned up
in the error handling path in ->probe().

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