Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364057
b: refs/heads/master
c: 364e3a8
h: refs/heads/master
i:
  364055: d030671
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Apr 11, 2013
1 parent 9a00019 commit e862963
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 25829c646e11dda92a5b3628b21fe852681fec44
refs/heads/master: 364e3a87f5759969cc287200c1cb5ba6151b5ba2
14 changes: 3 additions & 11 deletions trunk/drivers/staging/comedi/drivers/dt282x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1123,18 +1123,10 @@ static int dt282x_attach(struct comedi_device *dev, struct comedi_devconfig *it)
int i, irq;
int ret;
struct comedi_subdevice *s;
unsigned long iobase;

iobase = it->options[opt_iobase];
if (!iobase)
iobase = 0x240;

printk(KERN_INFO "comedi%d: dt282x: 0x%04lx", dev->minor, iobase);
if (!request_region(iobase, DT2821_SIZE, dev->board_name)) {
printk(KERN_INFO " I/O port conflict\n");
return -EBUSY;
}
dev->iobase = iobase;
ret = comedi_request_region(dev, it->options[0], DT2821_SIZE);
if (ret)
return ret;

outw(DT2821_BDINIT, dev->iobase + DT2821_SUPCSR);
i = inw(dev->iobase + DT2821_ADCSR);
Expand Down

0 comments on commit e862963

Please sign in to comment.