|
@@ -487,7 +487,7 @@ int build_channel_array(const char *device_dir,
|
|
|
device_dir,
|
|
|
current->name,
|
|
|
current->generic_name);
|
|
|
- if (ret < 0)
|
|
|
+ if ((ret < 0) && (ret != -ENOENT))
|
|
|
goto error_cleanup_array;
|
|
|
|
|
|
ret = iioutils_get_param_float(¤t->offset,
|
|
@@ -495,7 +495,7 @@ int build_channel_array(const char *device_dir,
|
|
|
device_dir,
|
|
|
current->name,
|
|
|
current->generic_name);
|
|
|
- if (ret < 0)
|
|
|
+ if ((ret < 0) && (ret != -ENOENT))
|
|
|
goto error_cleanup_array;
|
|
|
|
|
|
ret = iioutils_get_type(¤t->is_signed,
|