Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317102
b: refs/heads/master
c: 797ef32
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jun 5, 2012
1 parent 6734b09 commit f8f9f48
Show file tree
Hide file tree
Showing 2 changed files with 3 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: b74055465ce47c75b3ebf667c2ff0661828d7a11
refs/heads/master: 797ef32ba35589393f993bb2f18698d4bc3ad07d
5 changes: 2 additions & 3 deletions trunk/drivers/staging/comedi/drivers/aio_aio12_8.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ static const struct aio12_8_boardtype board_types[] = {
.name = "aio_aio12_8"},
};

#define thisboard ((const struct aio12_8_boardtype *) dev->board_ptr)

struct aio12_8_private {
unsigned int ao_readback[4];
};
Expand Down Expand Up @@ -167,6 +165,7 @@ static const struct comedi_lrange range_aio_aio12_8 = {
static int aio_aio12_8_attach(struct comedi_device *dev,
struct comedi_devconfig *it)
{
const struct aio12_8_boardtype *board = comedi_board(dev);
int iobase;
struct comedi_subdevice *s;

Expand All @@ -176,7 +175,7 @@ static int aio_aio12_8_attach(struct comedi_device *dev,
return -EIO;
}

dev->board_name = thisboard->name;
dev->board_name = board->name;

dev->iobase = iobase;

Expand Down

0 comments on commit f8f9f48

Please sign in to comment.