staging:iio:kfifo_buf fix double initialization of the ring device structure.

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>
This commit is contained in:
Jonathan Cameron 2011-07-13 12:52:00 +01:00 коммит произвёл Greg Kroah-Hartman
Родитель 8016934cbd
Коммит 05a93489bc
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -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_ring_buffer_init(&kf->ring, indio_dev);
__iio_init_kfifo(kf); __iio_init_kfifo(kf);
kf->ring.dev.type = &iio_kfifo_type; kf->ring.dev.type = &iio_kfifo_type;
device_initialize(&kf->ring.dev);
kf->ring.dev.parent = &indio_dev->dev; kf->ring.dev.parent = &indio_dev->dev;
kf->ring.dev.bus = &iio_bus_type;
dev_set_drvdata(&kf->ring.dev, (void *)&(kf->ring)); dev_set_drvdata(&kf->ring.dev, (void *)&(kf->ring));
return &kf->ring; return &kf->ring;