Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364062
b: refs/heads/master
c: c8c90a7
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Apr 11, 2013
1 parent bad4a99 commit 89bc6bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 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: a59585145f64da07ee1cfb4377deacdc2c216777
refs/heads/master: c8c90a73808f44dd10bcc2dd4bb6f966bc73cfe0
16 changes: 3 additions & 13 deletions trunk/drivers/staging/comedi/drivers/aio_iiro_16.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,12 @@ static int aio_iiro_16_dio_insn_bits_read(struct comedi_device *dev,
static int aio_iiro_16_attach(struct comedi_device *dev,
struct comedi_devconfig *it)
{
int iobase;
struct comedi_subdevice *s;
int ret;

printk(KERN_INFO "comedi%d: aio_iiro_16: ", dev->minor);

iobase = it->options[0];

if (!request_region(iobase, AIO_IIRO_16_SIZE, dev->board_name)) {
printk("I/O port conflict");
return -EIO;
}

dev->iobase = iobase;
ret = comedi_request_region(dev, it->options[0], AIO_IIRO_16_SIZE);
if (ret)
return ret;

ret = comedi_alloc_subdevices(dev, 2);
if (ret)
Expand All @@ -112,8 +104,6 @@ static int aio_iiro_16_attach(struct comedi_device *dev,
s->range_table = &range_digital;
s->insn_bits = aio_iiro_16_dio_insn_bits_read;

printk("attached\n");

return 1;
}

Expand Down

0 comments on commit 89bc6bc

Please sign in to comment.