Skip to content

Commit

Permalink
staging:iio:kfifo_buf fix double initialization of the ring device st…
Browse files Browse the repository at this point in the history
…ructure.

Looks like this moved into the core at somepoint and kfifo buf got left
behind.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Jonathan Cameron authored and Greg Kroah-Hartman committed Jul 18, 2011
1 parent 8016934 commit 05a9348
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/staging/iio/kfifo_buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ struct iio_ring_buffer *iio_kfifo_allocate(struct iio_dev *indio_dev)
iio_ring_buffer_init(&kf->ring, indio_dev);
__iio_init_kfifo(kf);
kf->ring.dev.type = &iio_kfifo_type;
device_initialize(&kf->ring.dev);
kf->ring.dev.parent = &indio_dev->dev;
kf->ring.dev.bus = &iio_bus_type;
dev_set_drvdata(&kf->ring.dev, (void *)&(kf->ring));

return &kf->ring;
Expand Down

0 comments on commit 05a9348

Please sign in to comment.