Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364044
b: refs/heads/master
c: ed34add
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Apr 11, 2013
1 parent 80a09ce commit c650058
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: a983834ee4f537079fb12b9ba237b7347f217c93
refs/heads/master: ed34add734e33afa33e7bf5ee5826650efdc0fe8
9 changes: 5 additions & 4 deletions trunk/drivers/staging/comedi/drivers/das08_isa.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,17 +179,18 @@ static int das08_isa_attach(struct comedi_device *dev,
{
const struct das08_board_struct *thisboard = comedi_board(dev);
struct das08_private_struct *devpriv;
int ret;

devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
return -ENOMEM;
dev->private = devpriv;

if (!request_region(it->options[0], thisboard->iosize,
thisboard->name))
return -EIO;
ret = comedi_request_region(dev, it->options[0], thisboard->iosize);
if (ret)
return ret;

return das08_common_attach(dev, it->options[0]);
return das08_common_attach(dev, dev->iobase);
}

static void das08_isa_detach(struct comedi_device *dev)
Expand Down

0 comments on commit c650058

Please sign in to comment.