projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8016934
)
staging:iio:kfifo_buf fix double initialization of the ring device structure.
author
Jonathan Cameron
<jic23@cam.ac.uk>
Wed, 13 Jul 2011 11:52:00 +0000
(12:52 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Mon, 18 Jul 2011 20:23:57 +0000
(13:23 -0700)
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>
drivers/staging/iio/kfifo_buf.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/iio/kfifo_buf.c
b/drivers/staging/iio/kfifo_buf.c
index cc14b96d814c24afb29cc7b7ef8690815aa73edf..6002368fdcfaa465bbe11cfbbe4f04a34a718bb1 100644
(file)
--- a/
drivers/staging/iio/kfifo_buf.c
+++ b/
drivers/staging/iio/kfifo_buf.c
@@
-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;