# Third repost: unregister\_chrdev.patch

- Subsystems: FRAMEBUFFER LAYER, THE REST
- Maintainers: Helge Deller, Linus Torvalds
- List: linux-fbdev
- 1 message, 1 author
- Page: https://ratatoskr.run/linux-fbdev/2005/07/13455164/t

## Third repost: unregister\_chrdev.patch

- From: Jon Smirl \<hidden\>
- Date: 2005-07-13 22:24:48 
- Message: https://ratatoskr.run/linux-fbdev/2005/07/13455164.md

```text
Can we get this into the kernel?

--
Jon Smirl
jonsmirl@gmail.com

#fbdev is missing unregister_chrdev() on unload
#Signed-off-by: Jon Smirl [ref]
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c
--- 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);


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
```
