Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141464
b: refs/heads/master
c: 719548e
h: refs/heads/master
v: v3
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent b3c96ef commit 945910b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 6742c0af2ef2d8ff70e379ebf8a8541190ff44e6
refs/heads/master: 719548ef66175bdea228f7b377a4edc259d16ab2
6 changes: 4 additions & 2 deletions trunk/drivers/staging/comedi/drivers.c
Original file line number Diff line number Diff line change
Expand Up @@ -799,8 +799,10 @@ int comedi_auto_config(struct device *hardware_device, const char *board_name, c
int retval;
unsigned *private_data = NULL;

if (!comedi_autoconfig)
return -ENODEV;
if (!comedi_autoconfig) {
dev_set_drvdata(hardware_device, NULL);
return 0;
}

minor = comedi_alloc_board_minor(hardware_device);
if(minor < 0) return minor;
Expand Down

0 comments on commit 945910b

Please sign in to comment.