]> 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)
commit1b31c68939615a2cae1c9995c2ec8aee1ee4381c
tree142cc1db3c1d1cb714d6c14b3217764475636bc9
parent3246bb2322487832c4fba0c91e661e19e6b23b88
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