Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2
+2
drivers/gpu/host1x/bus.c
··· 538 538 539 539 void host1x_driver_unregister(struct host1x_driver *driver) 540 540 { 541 + driver_unregister(&driver->driver); 542 + 541 543 mutex_lock(&drivers_lock); 542 544 list_del_init(&driver->list); 543 545 mutex_unlock(&drivers_lock);