aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/pktcdvd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/pktcdvd.c')
-rw-r--r--drivers/block/pktcdvd.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c
index 3b806c9fb005..3ba1df93e9e3 100644
--- a/drivers/block/pktcdvd.c
+++ b/drivers/block/pktcdvd.c
@@ -2742,7 +2742,6 @@ static int pkt_new_dev(struct pktcdvd_device *pd, dev_t dev)
2742 int i; 2742 int i;
2743 int ret = 0; 2743 int ret = 0;
2744 char b[BDEVNAME_SIZE]; 2744 char b[BDEVNAME_SIZE];
2745 struct proc_dir_entry *proc;
2746 struct block_device *bdev; 2745 struct block_device *bdev;
2747 2746
2748 if (pd->pkt_dev == dev) { 2747 if (pd->pkt_dev == dev) {
@@ -2786,11 +2785,7 @@ static int pkt_new_dev(struct pktcdvd_device *pd, dev_t dev)
2786 goto out_mem; 2785 goto out_mem;
2787 } 2786 }
2788 2787
2789 proc = create_proc_entry(pd->name, 0, pkt_proc); 2788 proc_create_data(pd->name, 0, pkt_proc, &pkt_proc_fops, pd);
2790 if (proc) {
2791 proc->data = pd;
2792 proc->proc_fops = &pkt_proc_fops;
2793 }
2794 DPRINTK(DRIVER_NAME": writer %s mapped to %s\n", pd->name, bdevname(bdev, b)); 2789 DPRINTK(DRIVER_NAME": writer %s mapped to %s\n", pd->name, bdevname(bdev, b));
2795 return 0; 2790 return 0;
2796 2791
@@ -3099,7 +3094,7 @@ static int __init pkt_init(void)
3099 goto out_misc; 3094 goto out_misc;
3100 } 3095 }
3101 3096
3102 pkt_proc = proc_mkdir(DRIVER_NAME, proc_root_driver); 3097 pkt_proc = proc_mkdir("driver/"DRIVER_NAME, NULL);
3103 3098
3104 return 0; 3099 return 0;
3105 3100
@@ -3115,7 +3110,7 @@ out2:
3115 3110
3116static void __exit pkt_exit(void) 3111static void __exit pkt_exit(void)
3117{ 3112{
3118 remove_proc_entry(DRIVER_NAME, proc_root_driver); 3113 remove_proc_entry("driver/"DRIVER_NAME, NULL);
3119 misc_deregister(&pkt_misc); 3114 misc_deregister(&pkt_misc);
3120 3115
3121 pkt_debugfs_cleanup(); 3116 pkt_debugfs_cleanup();