Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38348
b: refs/heads/master
c: add2166
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Maier authored and Linus Torvalds committed Oct 4, 2006
1 parent 7e6f7cc commit c97748f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7822082d4e054fbdec8cf26590a350e3496c5cc9
refs/heads/master: add216608a63713b8a2c4545698d5ae02e27ac3b
14 changes: 7 additions & 7 deletions trunk/drivers/block/pktcdvd.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@

static struct pktcdvd_device *pkt_devs[MAX_WRITERS];
static struct proc_dir_entry *pkt_proc;
static int pkt_major;
static int pktdev_major;
static struct mutex ctl_mutex; /* Serialize open/close/setup/teardown */
static mempool_t *psd_pool;

Expand Down Expand Up @@ -2476,7 +2476,7 @@ static int pkt_setup_dev(struct pkt_ctrl_command *ctrl_cmd)
init_waitqueue_head(&pd->wqueue);
pd->bio_queue = RB_ROOT;

disk->major = pkt_major;
disk->major = pktdev_major;
disk->first_minor = idx;
disk->fops = &pktcdvd_ops;
disk->flags = GENHD_FL_REMOVABLE;
Expand Down Expand Up @@ -2625,13 +2625,13 @@ static int __init pkt_init(void)
if (!psd_pool)
return -ENOMEM;

ret = register_blkdev(pkt_major, DRIVER_NAME);
ret = register_blkdev(pktdev_major, DRIVER_NAME);
if (ret < 0) {
printk(DRIVER_NAME": Unable to register block device\n");
goto out2;
}
if (!pkt_major)
pkt_major = ret;
if (!pktdev_major)
pktdev_major = ret;

ret = misc_register(&pkt_misc);
if (ret) {
Expand All @@ -2646,7 +2646,7 @@ static int __init pkt_init(void)
return 0;

out:
unregister_blkdev(pkt_major, DRIVER_NAME);
unregister_blkdev(pktdev_major, DRIVER_NAME);
out2:
mempool_destroy(psd_pool);
return ret;
Expand All @@ -2656,7 +2656,7 @@ static void __exit pkt_exit(void)
{
remove_proc_entry(DRIVER_NAME, proc_root_driver);
misc_deregister(&pkt_misc);
unregister_blkdev(pkt_major, DRIVER_NAME);
unregister_blkdev(pktdev_major, DRIVER_NAME);
mempool_destroy(psd_pool);
}

Expand Down

0 comments on commit c97748f

Please sign in to comment.