Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186822
b: refs/heads/master
c: c852ab6
h: refs/heads/master
v: v3
  • Loading branch information
Sven-Thorsten Dietrich authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent a9339dd commit d8d3828
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 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: 21b0838c1a03686277e0cfeda42015e4538b9ea3
refs/heads/master: c852ab66727558e7fb9c994a12ff30cc3d0e2448
2 changes: 1 addition & 1 deletion trunk/drivers/staging/batman-adv/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ int bat_device_open(struct inode *inode, struct file *file)
INIT_LIST_HEAD(&device_client->queue_list);
device_client->queue_len = 0;
device_client->index = i;
device_client->lock = __SPIN_LOCK_UNLOCKED(device_client->lock);
spin_lock_init(&device_client->lock);
init_waitqueue_head(&device_client->queue_wait);

file->private_data = device_client;
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/staging/iio/ring_generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ static inline void __iio_init_ring_buffer(struct iio_ring_buffer *ring,
ring->length = length;
ring->loopcount = 0;
ring->shared_ev_pointer.ev_p = 0;
ring->shared_ev_pointer.lock =
__SPIN_LOCK_UNLOCKED(ring->shared_ev_pointer->loc);
spin_lock_init(&ring->shared_ev_pointer.lock);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/iio/ring_sw.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static inline int __iio_init_sw_ring_buffer(struct iio_sw_ring_buffer *ring,
return -EINVAL;

__iio_init_ring_buffer(&ring->buf, bytes_per_datum, length);
ring->use_lock = __SPIN_LOCK_UNLOCKED((ring)->use_lock);
spin_lock_init(&ring->use_lock);
ring->data = kmalloc(length*ring->buf.bpd, GFP_KERNEL);
ring->read_p = 0;
ring->write_p = 0;
Expand Down

0 comments on commit d8d3828

Please sign in to comment.