I was just reading The Linux Kernel Module Programming Guide and and got stuck on character device drivers example.
Makefiles for previous examples were provided, but no
Because the function unregister_chrdev() don't return value. This is a helpful link. http://forum.kernelnewbies.org/read.php?17,1114