Ejemplo n.º 1
0
/*! \fn static void __exit deu_fini (void)
 *  \ingroup IFX_DEU_FUNCTIONS
 *  \brief remove the loaded crypto algorithms   
*/                                 
static int __devexit ltq_deu_remove(struct platform_device *pdev)
{
//#ifdef CONFIG_CRYPTO_DEV_PWR_SAVE_MODE
    #if defined(CONFIG_CRYPTO_DEV_DES)
    ifxdeu_fini_des ();
    #endif
    #if defined(CONFIG_CRYPTO_DEV_AES)
    ifxdeu_fini_aes ();
    #endif
    #if defined(CONFIG_CRYPTO_DEV_ARC4)
    ifxdeu_fini_arc4 ();
    #endif
    #if defined(CONFIG_CRYPTO_DEV_SHA1)
    ifxdeu_fini_sha1 ();
    #endif
    #if defined(CONFIG_CRYPTO_DEV_MD5)
    ifxdeu_fini_md5 ();
    #endif
    #if defined(CONFIG_CRYPTO_DEV_SHA1_HMAC)
    ifxdeu_fini_sha1_hmac ();
    #endif
    #if defined(CONFIG_CRYPTO_DEV_MD5_HMAC)
    ifxdeu_fini_md5_hmac ();
    #endif
    printk("DEU has exited successfully\n");

	return 0;
}
/**
 * Cleanup the DEU module.
 * Clean up all loaded algorithms that have been loaded for unloading.
 *
 * \ingroup Internal  
 */
static void __exit deu_fini(void)
{
#ifdef CONFIG_CRYPTO_DEV_INCAIP1_DES
	ifxdeu_fini_des();
#endif
#ifdef CONFIG_CRYPTO_DEV_INCAIP1_AES
	ifxdeu_fini_aes();
#endif
#ifdef CONFIG_CRYPTO_DEV_INCAIP2_DES
	ifxdeu_fini_des();
#endif
#ifdef CONFIG_CRYPTO_DEV_INCAIP2_AES
	ifxdeu_fini_aes();
#endif
#ifdef CONFIG_CRYPTO_DEV_INCAIP2_SHA1
	ifxdeu_fini_sha1();
#endif
#ifdef CONFIG_CRYPTO_DEV_INCAIP2_MD5
	ifxdeu_fini_md5();
#endif
}