Fix compilation on 3.8+ kernels
Call misc_deregister in correct exit function
Make smo8800_dev static
Reformat code