Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317810
b: refs/heads/master
c: 46b2431
h: refs/heads/master
v: v3
  • Loading branch information
Sascha Hauer authored and Jonathan Cameron committed Jul 8, 2012
1 parent 9791103 commit 3c66956
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: a91aff1c09fc41a55ccaa115763ff77e36b527d3
refs/heads/master: 46b24311ccc8b37da9e6e006c6158229a5354268
3 changes: 2 additions & 1 deletion trunk/drivers/iio/industrialio-event.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@ static inline int __iio_add_event_config_attrs(struct iio_dev *indio_dev)
{
int j, ret, attrcount = 0;

INIT_LIST_HEAD(&indio_dev->event_interface->dev_attr_list);
/* Dynically created from the channels array */
for (j = 0; j < indio_dev->num_channels; j++) {
ret = iio_device_add_event_sysfs(indio_dev,
Expand Down Expand Up @@ -396,6 +395,8 @@ int iio_device_register_eventset(struct iio_dev *indio_dev)
goto error_ret;
}

INIT_LIST_HEAD(&indio_dev->event_interface->dev_attr_list);

iio_setup_ev_int(indio_dev->event_interface);
if (indio_dev->info->event_attrs != NULL) {
attr = indio_dev->info->event_attrs->attrs;
Expand Down

0 comments on commit 3c66956

Please sign in to comment.