Removed kthread, fixed init and final cleanup code for patform dev.