Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364081
b: refs/heads/master
c: 70998b9
h: refs/heads/master
i:
  364079: 050b497
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Apr 11, 2013
1 parent a99d5c7 commit 9206e62
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 4aa83c198082f4e703b8a424d1065f76d7885cdf
refs/heads/master: 70998b990b0489dcebd2e5b75a0e0cc3fff1065e
20 changes: 7 additions & 13 deletions trunk/drivers/staging/comedi/drivers/multiq3.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,22 +226,16 @@ static int multiq3_attach(struct comedi_device *dev,
struct comedi_devconfig *it)
{
struct multiq3_private *devpriv;
int result = 0;
unsigned long iobase;
struct comedi_subdevice *s;
int ret;

iobase = it->options[0];
printk(KERN_INFO "comedi%d: multiq3: 0x%04lx ", dev->minor, iobase);
if (!request_region(iobase, MULTIQ3_SIZE, "multiq3")) {
printk(KERN_ERR "comedi%d: I/O port conflict\n", dev->minor);
return -EIO;
}

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

result = comedi_alloc_subdevices(dev, 5);
if (result)
return result;
ret = comedi_alloc_subdevices(dev, 5);
if (ret)
return ret;

devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
Expand Down

0 comments on commit 9206e62

Please sign in to comment.