[one]: Removed warning 'WARNING: modpost: Found 1 section mismatch(es).'

Change-Id: I5a35aefe90cff3d2b176cdfab427379cf3203140
[one] Fixed resource allocation/deallocation order

the struct cdev must be the last one to be allocated at the startup and the
first one to be deallocated relleased on termination or error.

Change-Id: Ibc3254c659c9421e2eb37f9c5fea914aa18f2186
[one] Created a new function to handle resource deallocation

Change-Id: Idc1693f4ce2d92c52cc59e77ff0df67efa380a4a