Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324899
b: refs/heads/master
c: 06e915e
h: refs/heads/master
i:
  324897: 11f57c6
  324895: cae4839
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 6, 2012
1 parent ff82778 commit 7cd4941
Show file tree
Hide file tree
Showing 2 changed files with 8 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: fe2e334a334d032b3c60c47a5a98429ee6d84a53
refs/heads/master: 06e915e2ac55afb4989da4fb212150aa67a369ca
10 changes: 7 additions & 3 deletions trunk/drivers/staging/comedi/drivers/ni_daq_dio24.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,20 @@ static int dio24_attach(struct comedi_device *dev, struct comedi_devconfig *it)
return ret;

/* 8255 dio */
s = dev->subdevices + 0;
s = &dev->subdevices[0];
subdev_8255_init(dev, s, NULL, dev->iobase);

return 0;
};

static void dio24_detach(struct comedi_device *dev)
{
if (dev->subdevices)
subdev_8255_cleanup(dev, dev->subdevices + 0);
struct comedi_subdevice *s;

if (dev->subdevices) {
s = &dev->subdevices[0];
subdev_8255_cleanup(dev, s);
}
if (thisboard->bustype != pcmcia_bustype && dev->iobase)
release_region(dev->iobase, DIO24_SIZE);
if (dev->irq)
Expand Down

0 comments on commit 7cd4941

Please sign in to comment.