Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354292
b: refs/heads/master
c: 682b911
h: refs/heads/master
v: v3
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Jan 30, 2013
1 parent 6e6ad76 commit c0cbe33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 754ab5c0e55dd118273ca2c217c4d95e9fbc8259
refs/heads/master: 682b911938f8c0e88c8204bb1178c2c7728d5661
8 changes: 4 additions & 4 deletions trunk/drivers/staging/comedi/comedi_fops.c
Original file line number Diff line number Diff line change
Expand Up @@ -2415,11 +2415,11 @@ void comedi_free_subdevice_minor(struct comedi_subdevice *s)
kfree(info);
}

static void comedi_cleanup_legacy_minors(void)
static void comedi_cleanup_board_minors(void)
{
unsigned i;

for (i = 0; i < comedi_num_legacy_minors; i++)
for (i = 0; i < COMEDI_NUM_BOARD_MINORS; i++)
comedi_free_board_minor(i);
}

Expand Down Expand Up @@ -2479,7 +2479,7 @@ static int __init comedi_init(void)
int minor;
minor = comedi_alloc_board_minor(NULL);
if (minor < 0) {
comedi_cleanup_legacy_minors();
comedi_cleanup_board_minors();
cdev_del(&comedi_cdev);
unregister_chrdev_region(MKDEV(COMEDI_MAJOR, 0),
COMEDI_NUM_MINORS);
Expand All @@ -2495,7 +2495,7 @@ static void __exit comedi_cleanup(void)
{
int i;

comedi_cleanup_legacy_minors();
comedi_cleanup_board_minors();
for (i = 0; i < COMEDI_NUM_MINORS; ++i)
BUG_ON(comedi_file_info_table[i]);

Expand Down

0 comments on commit c0cbe33

Please sign in to comment.