aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/pktcdvd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c
index 8a73a054a15a..f2904f67af47 100644
--- a/drivers/block/pktcdvd.c
+++ b/drivers/block/pktcdvd.c
@@ -82,7 +82,7 @@
82 82
83static struct pktcdvd_device *pkt_devs[MAX_WRITERS]; 83static struct pktcdvd_device *pkt_devs[MAX_WRITERS];
84static struct proc_dir_entry *pkt_proc; 84static struct proc_dir_entry *pkt_proc;
85static int pkt_major; 85static int pktdev_major;
86static struct mutex ctl_mutex; /* Serialize open/close/setup/teardown */ 86static struct mutex ctl_mutex; /* Serialize open/close/setup/teardown */
87static mempool_t *psd_pool; 87static mempool_t *psd_pool;
88 88
@@ -2476,7 +2476,7 @@ static int pkt_setup_dev(struct pkt_ctrl_command *ctrl_cmd)
2476 init_waitqueue_head(&pd->wqueue); 2476 init_waitqueue_head(&pd->wqueue);
2477 pd->bio_queue = RB_ROOT; 2477 pd->bio_queue = RB_ROOT;
2478 2478
2479 disk->major = pkt_major; 2479 disk->major = pktdev_major;
2480 disk->first_minor = idx; 2480 disk->first_minor = idx;
2481 disk->fops = &pktcdvd_ops; 2481 disk->fops = &pktcdvd_ops;
2482 disk->flags = GENHD_FL_REMOVABLE; 2482 disk->flags = GENHD_FL_REMOVABLE;
@@ -2625,13 +2625,13 @@ static int __init pkt_init(void)
2625 if (!psd_pool) 2625 if (!psd_pool)
2626 return -ENOMEM; 2626 return -ENOMEM;
2627 2627
2628 ret = register_blkdev(pkt_major, DRIVER_NAME); 2628 ret = register_blkdev(pktdev_major, DRIVER_NAME);
2629 if (ret < 0) { 2629 if (ret < 0) {
2630 printk(DRIVER_NAME": Unable to register block device\n"); 2630 printk(DRIVER_NAME": Unable to register block device\n");
2631 goto out2; 2631 goto out2;
2632 } 2632 }
2633 if (!pkt_major) 2633 if (!pktdev_major)
2634 pkt_major = ret; 2634 pktdev_major = ret;
2635 2635
2636 ret = misc_register(&pkt_misc); 2636 ret = misc_register(&pkt_misc);
2637 if (ret) { 2637 if (ret) {
@@ -2646,7 +2646,7 @@ static int __init pkt_init(void)
2646 return 0; 2646 return 0;
2647 2647
2648out: 2648out:
2649 unregister_blkdev(pkt_major, DRIVER_NAME); 2649 unregister_blkdev(pktdev_major, DRIVER_NAME);
2650out2: 2650out2:
2651 mempool_destroy(psd_pool); 2651 mempool_destroy(psd_pool);
2652 return ret; 2652 return ret;
@@ -2656,7 +2656,7 @@ static void __exit pkt_exit(void)
2656{ 2656{
2657 remove_proc_entry(DRIVER_NAME, proc_root_driver); 2657 remove_proc_entry(DRIVER_NAME, proc_root_driver);
2658 misc_deregister(&pkt_misc); 2658 misc_deregister(&pkt_misc);
2659 unregister_blkdev(pkt_major, DRIVER_NAME); 2659 unregister_blkdev(pktdev_major, DRIVER_NAME);
2660 mempool_destroy(psd_pool); 2660 mempool_destroy(psd_pool);
2661} 2661}
2662 2662