Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364082
b: refs/heads/master
c: 7ba2551
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Apr 11, 2013
1 parent 9206e62 commit c2ededb
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 70998b990b0489dcebd2e5b75a0e0cc3fff1065e
refs/heads/master: 7ba25510ca88bed86e0e1e2537ae914e837afa99
4 changes: 1 addition & 3 deletions trunk/drivers/staging/comedi/drivers/poc.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,16 +147,14 @@ static int poc_attach(struct comedi_device *dev, struct comedi_devconfig *it)
printk(KERN_INFO "comedi%d: poc: using %s iobase 0x%lx\n", dev->minor,
board->name, iobase);

dev->board_name = board->name;

if (iobase == 0) {
printk(KERN_ERR "io base address required\n");
return -EINVAL;
}

iosize = board->iosize;
/* check if io addresses are available */
if (!request_region(iobase, iosize, "dac02")) {
if (!request_region(iobase, iosize, dev->board_name)) {
printk(KERN_ERR "I/O port conflict: failed to allocate ports "
"0x%lx to 0x%lx\n", iobase, iobase + iosize - 1);
return -EIO;
Expand Down

0 comments on commit c2ededb

Please sign in to comment.