/*********************************************************************** F* Function: void cleanup_module (void) P*A*Z* * P* Parameters: none P* P* Returnvalue: none * Z* Intention: Cleanup and shutdown the driver to allow unloading Z* of the module. * D* Design: Haider / [email protected] C* Coding: Haider / [email protected] V* Verification: [email protected] / [email protected] ***********************************************************************/ void cleanup_module (void) { debugk ("%s: cleanup WDT8xx\n", __FUNCTION__); del_timer (&wd_timer); free_mon_list(); misc_deregister (&wdt_miscdev); }
/*********************************************************************** F* Function: void wd_cleanup(void) P*A*Z* * P* Parameters: none P* P* Returnvalue: none * Z* Intention: Cleanup and shutdown the driver to allow unloading Z* of the module. * D* Design: Haider / [email protected] C* Coding: Haider / [email protected] V* Verification: [email protected] / [email protected] ***********************************************************************/ void wd_cleanup(void) { debugk("%s: cleanup WD\n", __FUNCTION__); misc_deregister(&wd_miscdev); BUG_ON(wd_hw_functions.wd_delete == NULL); wd_hw_functions.wd_delete(); del_timer(&wd_timer); free_mon_list(); }