From: Jon Smirl Date: Wed, 27 Jul 2005 18:46:04 +0000 (-0700) Subject: [PATCH] fbmem: use unregister_chrdev() on unload X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5a340cce09f5dfd89b7b7eea1a52d1a2d1c99a2e;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [PATCH] fbmem: use unregister_chrdev() on unload fbdev is missing unregister_chrdev() on unload. Signed-off-by: Jon Smirl Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c index 2222de6ad84..40784a944d0 100644 --- a/drivers/video/fbmem.c +++ b/drivers/video/fbmem.c @@ -1164,6 +1164,7 @@ static void __exit fbmem_exit(void) { class_destroy(fb_class); + unregister_chrdev(FB_MAJOR, "fb"); } module_exit(fbmem_exit);