gpu: host1x: Remove core driver on unregister
authorThierry Reding <treding@nvidia.com>
Mon, 24 Aug 2015 12:51:04 +0000 (14:51 +0200)
committerThierry 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

index 4a99c6416e6a3e3c254cb1e46cc000b79a68e785..da462afcb225ea6958918b3d8ff52a0ee928cca3 100644 (file)
@@ -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);