mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-12 12:22:42 +00:00
Staging: comedi: Make comedi_auto_config() succeed when auto-configuration disabled.
Otherwise it would not work properly. From: Ian Abbott <abbotti@mev.co.uk> Cc: Frank Mori Hess <fmhess@users.sourceforge.net> Cc: David Schleef <ds@schleef.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
6742c0af2e
commit
719548ef66
@ -799,8 +799,10 @@ int comedi_auto_config(struct device *hardware_device, const char *board_name, c
|
|||||||
int retval;
|
int retval;
|
||||||
unsigned *private_data = NULL;
|
unsigned *private_data = NULL;
|
||||||
|
|
||||||
if (!comedi_autoconfig)
|
if (!comedi_autoconfig) {
|
||||||
return -ENODEV;
|
dev_set_drvdata(hardware_device, NULL);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
minor = comedi_alloc_board_minor(hardware_device);
|
minor = comedi_alloc_board_minor(hardware_device);
|
||||||
if(minor < 0) return minor;
|
if(minor < 0) return minor;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user