Ejemplo n.º 1
0
void remove_proc_fp(void)
{
	int i;

	for (i = sizeof(fp_procs)/sizeof(fp_procs[0]) - 1; i >= 0; i--)
	{
		remove_e2_procs(fp_procs[i].name, fp_procs[i].read_proc, fp_procs[i].write_proc);
	}
}
Ejemplo n.º 2
0
void cleanup_e2_proc(void)
{
	int i;

	for (i = sizeof(e2_procs) / sizeof(e2_procs[0]) - 1; i >= 0; i--)
	{
		remove_e2_procs(e2_procs[i].name, e2_procs[i].read_proc,
				e2_procs[i].write_proc);
	}
}
Ejemplo n.º 3
0
static void __exit cleanup_fan_module(void)
{
    remove_e2_procs(e2_procs[0].name, e2_procs[0].read_proc, e2_procs[0].write_proc);



    if (fan_pin != NULL)
    	stpio_free_pin (fan_pin);

   	
}
Ejemplo n.º 4
0
static void __exit cleanup_fan_module(void)
{
    remove_e2_procs(e2_procs[0].name, e2_procs[0].read_proc, e2_procs[0].write_proc);
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,17) 
    if (fan_pin != NULL) {
    	stpio_set_pin(fan_pin, 0);
    	stpio_free_pin (fan_pin);
    }	
#else      
    if (fan_pin != NULL)
    	stpio_free_pin (fan_pin);
#endif


    	
}