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>
This commit is contained in:
parent
28fae81f93
commit
e3e70814ce
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user