projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28fae81
)
gpu: host1x: Remove core driver on unregister
author
Thierry Reding
<treding@nvidia.com>
Mon, 24 Aug 2015 12:51:04 +0000
(14:51 +0200)
committer
Thierry Reding
<treding@nvidia.com>
Mon, 14 Dec 2015 09:50:33 +0000
(10:50 +0100)
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>
drivers/gpu/host1x/bus.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/host1x/bus.c
b/drivers/gpu/host1x/bus.c
index
4a99c64
..
da462af
100644
(file)
--- a/
drivers/gpu/host1x/bus.c
+++ b/
drivers/gpu/host1x/bus.c
@@
-538,6
+538,8
@@
EXPORT_SYMBOL(host1x_driver_register_full);
void host1x_driver_unregister(struct host1x_driver *driver)
{
+ driver_unregister(&driver->driver);
+
mutex_lock(&drivers_lock);
list_del_init(&driver->list);
mutex_unlock(&drivers_lock);