예제 #1
0
파일: emf_linux.c 프로젝트: Einheri/wl500g
static void __exit
emf_module_exit(void)
{
	/* Call the common code global exit function */
	emfc_module_exit();

	/* Clean up the instances and exit */
	sock_release(emf->nl_sk->sk_socket);
	emf_instances_clear(emf);
	OSL_LOCK_DESTROY(emf->lock);
	MFREE(NULL, emf, sizeof(emf_struct_t));

	return;
}
예제 #2
0
static void __exit
emf_module_exit(void)
{
	/* Call the common code global exit function */
	emfc_module_exit();

	/* Clean up the instances and exit */
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
	sock_release(emf->nl_sk->sk_socket);
#else
	sock_release(emf->nl_sk->socket);
#endif
	emf_instances_clear(emf);
	OSL_LOCK_DESTROY(emf->lock);
	MFREE(NULL, emf, sizeof(emf_struct_t));

	return;
}