projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9a29c2
)
Make comedi_auto_config() succeed when auto-configuration disabled.
author
Ian Abbott
<abbotti@mev.co.uk>
Tue, 9 Dec 2008 11:07:22 +0000
(11:07 +0000)
committer
Ian Abbott
<abbotti@mev.co.uk>
Tue, 9 Dec 2008 11:07:22 +0000
(11:07 +0000)
comedi/drivers.c
patch
|
blob
|
history
diff --git
a/comedi/drivers.c
b/comedi/drivers.c
index bb9b4828cc8d573b91df579f4d1e55bbc631d683..66bd91cf20adc2b0bd54d35670276f052b3fb449 100644
(file)
--- a/
comedi/drivers.c
+++ b/
comedi/drivers.c
@@
-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;