Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364043
b: refs/heads/master
c: a983834
h: refs/heads/master
i:
  364041: d631a8b
  364039: 314deac
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Apr 11, 2013
1 parent 4048692 commit 80a09ce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 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: 45f9fcc2ffe8664d3f9a019f150dc11862ab34f4
refs/heads/master: a983834ee4f537079fb12b9ba237b7347f217c93
20 changes: 9 additions & 11 deletions trunk/drivers/staging/comedi/drivers/das16m1.c
Original file line number Diff line number Diff line change
Expand Up @@ -571,26 +571,24 @@ static int das16m1_attach(struct comedi_device *dev,
struct comedi_subdevice *s;
int ret;
unsigned int irq;
unsigned long iobase;

iobase = it->options[0];

devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
return -ENOMEM;
dev->private = devpriv;

if (!request_region(iobase, DAS16M1_SIZE, dev->board_name)) {
comedi_error(dev, "I/O port conflict\n");
return -EIO;
}
if (!request_region(iobase + DAS16M1_82C55, DAS16M1_SIZE2,
ret = comedi_request_region(dev, it->options[0], DAS16M1_SIZE);
if (ret)
return ret;
/* Request an additional region for the 8255 */
if (!request_region(dev->iobase + DAS16M1_82C55, DAS16M1_SIZE2,
dev->board_name)) {
release_region(iobase, DAS16M1_SIZE);
comedi_error(dev, "I/O port conflict\n");
release_region(dev->iobase, DAS16M1_SIZE);
dev_warn(dev->class_dev, "%s: I/O port conflict (%#lx,%d)\n",
dev->board_name,
dev->iobase + DAS16M1_82C55, DAS16M1_SIZE2);
return -EIO;
}
dev->iobase = iobase;

/* now for the irq */
irq = it->options[1];
Expand Down

0 comments on commit 80a09ce

Please sign in to comment.