Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3e70814 authored by Thierry Reding's avatar Thierry Reding
Browse files

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: default avatarThierry Reding <treding@nvidia.com>
parent 28fae81f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);