diff options
author | Thierry Reding <treding@nvidia.com> | 2015-08-24 08:51:04 -0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-12-14 04:50:33 -0500 |
commit | e3e70814cebb0beec47dd38e60f89850950a2903 (patch) | |
tree | eb854e639d036c74f63e1c337783b47e85226a84 | |
parent | 28fae81f93d5482f25bb8e9881104ad1157c2cfd (diff) |
gpu: host1x: Remove core driver on unregister
When unregistering a host1x driver, make sure to unregister the core
driver as well to prevent it from sticking around and oppose reloading
of the driver.
Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r-- | drivers/gpu/host1x/bus.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/host1x/bus.c b/drivers/gpu/host1x/bus.c index 4a99c6416e6a..da462afcb225 100644 --- a/drivers/gpu/host1x/bus.c +++ b/drivers/gpu/host1x/bus.c | |||
@@ -538,6 +538,8 @@ EXPORT_SYMBOL(host1x_driver_register_full); | |||
538 | 538 | ||
539 | void host1x_driver_unregister(struct host1x_driver *driver) | 539 | void host1x_driver_unregister(struct host1x_driver *driver) |
540 | { | 540 | { |
541 | driver_unregister(&driver->driver); | ||
542 | |||
541 | mutex_lock(&drivers_lock); | 543 | mutex_lock(&drivers_lock); |
542 | list_del_init(&driver->list); | 544 | list_del_init(&driver->list); |
543 | mutex_unlock(&drivers_lock); | 545 | mutex_unlock(&drivers_lock); |