From: Jon Smirl Date: Wed, 27 Jul 2005 18:46:04 +0000 (-0700) Subject: [PATCH] fbmem: use unregister_chrdev() on unload X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=5a340cce09f5dfd89b7b7eea1a52d1a2d1c99a2e;p=openwrt%2Fstaging%2Fblogic.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 2222de6ad844..40784a944d05 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);