From: Thierry Reding Date: Mon, 24 Aug 2015 12:51:04 +0000 (+0200) Subject: gpu: host1x: Remove core driver on unregister X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e3e70814cebb0beec47dd38e60f89850950a2903;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- diff --git a/drivers/gpu/host1x/bus.c b/drivers/gpu/host1x/bus.c index 4a99c6416e6a..da462afcb225 100644 --- a/drivers/gpu/host1x/bus.c +++ b/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);