Explorar el Código

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>
Thierry Reding hace 10 años
padre
commit
e3e70814ce
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      drivers/gpu/host1x/bus.c

+ 2 - 0
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);