aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-11-05 05:43:26 -0500
committerThierry Reding <treding@nvidia.com>2015-01-23 06:07:00 -0500
commit536e1715226c94037df12f7c6280cbe0f6009f92 (patch)
tree142cc1db3c1d1cb714d6c14b3217764475636bc9 /include
parent281d1bbd34b734e4f22b30b6f3b673dda46a7470 (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/host1x.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/host1x.h b/include/linux/host1x.h
index bb9840fd1e18..7890b553d12e 100644
--- a/include/linux/host1x.h
+++ b/include/linux/host1x.h
@@ -272,6 +272,8 @@ struct host1x_device {
272 272
273 struct mutex clients_lock; 273 struct mutex clients_lock;
274 struct list_head clients; 274 struct list_head clients;
275
276 bool bound;
275}; 277};
276 278
277static inline struct host1x_device *to_host1x_device(struct device *dev) 279static inline struct host1x_device *to_host1x_device(struct device *dev)