]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] fbmem: use unregister_chrdev() on unload
authorJon Smirl <jonsmirl@gmail.com>
Wed, 27 Jul 2005 18:46:04 +0000 (11:46 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 27 Jul 2005 23:26:18 +0000 (16:26 -0700)
fbdev is missing unregister_chrdev() on unload.

Signed-off-by: Jon Smirl <jonsmirl@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/fbmem.c

index 2222de6ad8446b8d77ec879cf04ecface133fa83..40784a944d05ea824470e09e4a7f918ff1a6032b 100644 (file)
@@ -1164,6 +1164,7 @@ static void __exit
 fbmem_exit(void)
 {
        class_destroy(fb_class);
+       unregister_chrdev(FB_MAJOR, "fb");
 }
 
 module_exit(fbmem_exit);