summaryrefslogtreecommitdiffstats
path: root/net/core/pktgen.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2009-08-28 23:34:43 -0700
committerDavid S. Miller <davem@davemloft.net>2009-08-28 23:41:43 -0700
commit2975315b79f4109523b3d43932f57ed8370b9da3 (patch)
tree565280baecf0e9ed69be4149d130694fe622405f /net/core/pktgen.c
parentc3d2f52dd40b5b6c122329dac32dc0e0351f0598 (diff)
downloadop-kernel-dev-2975315b79f4109523b3d43932f57ed8370b9da3.zip
op-kernel-dev-2975315b79f4109523b3d43932f57ed8370b9da3.tar.gz
pktgen: use proc_create_data()
It looks like after rename device proc entry is unusable, because of no ->read_proc or ->proc_fops. And create_proc_entry() is deprecated. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/pktgen.c')
-rw-r--r--net/core/pktgen.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index 42e4cce..2001cb1 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -1882,8 +1882,10 @@ static void pktgen_change_name(struct net_device *dev)
remove_proc_entry(pkt_dev->entry->name, pg_proc_dir);
- pkt_dev->entry = create_proc_entry(dev->name, 0600,
- pg_proc_dir);
+ pkt_dev->entry = proc_create_data(dev->name, 0600,
+ pg_proc_dir,
+ &pktgen_if_fops,
+ pkt_dev);
if (!pkt_dev->entry)
printk(KERN_ERR "pktgen: can't move proc "
" entry for '%s'\n", dev->name);
OpenPOWER on IntegriCloud