Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364045
b: refs/heads/master
c: 8234d51
h: refs/heads/master
i:
  364043: 80a09ce
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Apr 11, 2013
1 parent c650058 commit c3ef27d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: ed34add734e33afa33e7bf5ee5826650efdc0fe8
refs/heads/master: 8234d51a280290a23e9c21d5f1a5988d984cbdc9
12 changes: 6 additions & 6 deletions trunk/drivers/staging/comedi/drivers/das16.c
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,7 @@ static int das16_attach(struct comedi_device *dev, struct comedi_devconfig *it)

if (board->size < 0x400) {
printk(" 0x%04lx-0x%04lx\n", iobase, iobase + board->size);
if (!request_region(iobase, board->size, "das16")) {
if (!request_region(iobase, board->size, dev->board_name)) {
printk(KERN_ERR " I/O port conflict\n");
return -EIO;
}
Expand All @@ -1126,13 +1126,13 @@ static int das16_attach(struct comedi_device *dev, struct comedi_devconfig *it)
iobase, iobase + 0x0f,
iobase + 0x400,
iobase + 0x400 + (board->size & 0x3ff));
if (!request_region(iobase, 0x10, "das16")) {
if (!request_region(iobase, 0x10, dev->board_name)) {
printk(KERN_ERR " I/O port conflict: 0x%04lx-0x%04lx\n",
iobase, iobase + 0x0f);
return -EIO;
}
if (!request_region(iobase + 0x400, board->size & 0x3ff,
"das16")) {
dev->board_name)) {
release_region(iobase, 0x10);
printk(KERN_ERR " I/O port conflict: 0x%04lx-0x%04lx\n",
iobase + 0x400,
Expand All @@ -1148,7 +1148,6 @@ static int das16_attach(struct comedi_device *dev, struct comedi_devconfig *it)
printk(KERN_ERR " id bits do not match selected board, aborting\n");
return -EINVAL;
}
dev->board_name = board->name;

/* get master clock speed */
if (board->size < 0x400) {
Expand All @@ -1162,7 +1161,8 @@ static int das16_attach(struct comedi_device *dev, struct comedi_devconfig *it)

/* now for the irq */
if (irq > 1 && irq < 8) {
ret = request_irq(irq, das16_dma_interrupt, 0, "das16", dev);
ret = request_irq(irq, das16_dma_interrupt, 0,
dev->board_name, dev);

if (ret < 0)
return ret;
Expand All @@ -1188,7 +1188,7 @@ static int das16_attach(struct comedi_device *dev, struct comedi_devconfig *it)
if (devpriv->dma_buffer[i] == NULL)
return -ENOMEM;
}
if (request_dma(dma_chan, "das16")) {
if (request_dma(dma_chan, dev->board_name)) {
printk(KERN_ERR " failed to allocate dma channel %i\n",
dma_chan);
return -EINVAL;
Expand Down

0 comments on commit c3ef27d

Please sign in to comment.