mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 00:51:35 +00:00
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>
This commit is contained in:
parent
281d1bbd34
commit
536e171522
2 changed files with 9 additions and 2 deletions
|
@ -272,6 +272,8 @@ struct host1x_device {
|
|||
|
||||
struct mutex clients_lock;
|
||||
struct list_head clients;
|
||||
|
||||
bool bound;
|
||||
};
|
||||
|
||||
static inline struct host1x_device *to_host1x_device(struct device *dev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue