Commit 00745355 authored by thomasl's avatar thomasl

alloc_netdev changed for kernel 3.17



git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6047 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 64333575
......@@ -49,6 +49,7 @@
//#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/version.h>
#include <linux/init.h>
#include <linux/spinlock.h>
#include <linux/moduleparam.h>
......@@ -470,7 +471,11 @@ int init_module (void) {
sprintf(devicename,"oai%d",inst);
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0)
nasdev[inst] = alloc_netdev(sizeof(struct nas_priv),devicename, nas_init);
#else
nasdev[inst] = alloc_netdev(sizeof(struct nas_priv),devicename, NET_NAME_PREDICTABLE, nas_init);
#endif
priv = netdev_priv(nasdev[inst]);
if (nasdev[inst]){
......
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