diff options
| -rw-r--r-- | drivers/iio/industrialio-event.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/iio/industrialio-event.c b/drivers/iio/industrialio-event.c index 258a973a1fb8..bfbf4d419f41 100644 --- a/drivers/iio/industrialio-event.c +++ b/drivers/iio/industrialio-event.c | |||
| @@ -345,6 +345,9 @@ static int iio_device_add_event(struct iio_dev *indio_dev, | |||
| 345 | &indio_dev->event_interface->dev_attr_list); | 345 | &indio_dev->event_interface->dev_attr_list); |
| 346 | kfree(postfix); | 346 | kfree(postfix); |
| 347 | 347 | ||
| 348 | if ((ret == -EBUSY) && (shared_by != IIO_SEPARATE)) | ||
| 349 | continue; | ||
| 350 | |||
| 348 | if (ret) | 351 | if (ret) |
| 349 | return ret; | 352 | return ret; |
| 350 | 353 | ||
