Commit e74a94f1 authored by thomasl's avatar thomasl

remove kernel 2.6 coditional code


git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6075 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 0f29fdca
......@@ -436,19 +436,13 @@ static struct proc_dir_entry *proc_openair2_root;
*/
int add_openair2_stats()
{
#ifdef KERNEL_VERSION_GREATER_THAN_2629
struct proc_dir_entry *pde;
#endif
proc_openair2_root = proc_mkdir("openair2",0);
#ifdef KERNEL_VERSION_GREATER_THAN_2629
// pde = proc_create_entry("lchan_stats", S_IFREG | S_IRUGO, proc_openair2_root);
pde = proc_create_data("lchan_stats", S_IFREG | S_IRUGO, proc_openair2_root, NULL,openair2_stats_read);
if (!pde)
printk("[OPENAIR][ERROR] can't create proc entry !\n");
#else
create_proc_info_entry("lchan_stats", S_IFREG | S_IRUGO, proc_openair2_root, openair2_stats_read);
#endif
return 0;
}
......@@ -461,11 +455,7 @@ void remove_openair_stats()
if (proc_openair2_root) {
printk("[OPENAIR][CLEANUP] Removing openair proc entry\n");
remove_proc_entry("lchan_stats", proc_openair2_root);
#ifdef KERNEL_VERSION_GREATER_THAN_2629
#else
remove_proc_entry("openair2",&proc_root);
#endif;
}
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment