Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324821
b: refs/heads/master
c: 5e4c58c
h: refs/heads/master
i:
  324819: 8308f6c
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 6, 2012
1 parent 9ac780d commit 3cb8f74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: b077f2cd9b63798c676d62e03c85ace094e2d970
refs/heads/master: 5e4c58ce65103a820c4ca4b4b0bd8609e638cf75
6 changes: 3 additions & 3 deletions trunk/drivers/staging/comedi/drivers.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ int comedi_alloc_subdevices(struct comedi_device *dev, int num_subdevices)
dev->n_subdevices = num_subdevices;

for (i = 0; i < num_subdevices; ++i) {
s = dev->subdevices + i;
s = &dev->subdevices[i];
s->device = dev;
s->async_dma_dir = DMA_NONE;
spin_lock_init(&s->spin_lock);
Expand All @@ -88,7 +88,7 @@ static void cleanup_device(struct comedi_device *dev)

if (dev->subdevices) {
for (i = 0; i < dev->n_subdevices; i++) {
s = dev->subdevices + i;
s = &dev->subdevices[i];
comedi_free_subdevice_minor(s);
if (s->async) {
comedi_buf_alloc(dev, s, 0);
Expand Down Expand Up @@ -260,7 +260,7 @@ static int postconfig(struct comedi_device *dev)
int ret;

for (i = 0; i < dev->n_subdevices; i++) {
s = dev->subdevices + i;
s = &dev->subdevices[i];

if (s->type == COMEDI_SUBD_UNUSED)
continue;
Expand Down

0 comments on commit 3cb8f74

Please sign in to comment.