Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317083
b: refs/heads/master
c: 2fbffee
h: refs/heads/master
i:
  317081: 4c3fde2
  317079: 34e980b
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jun 5, 2012
1 parent 21edee9 commit 5274e15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 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: 57bbeb3b9bc32f1ee4b14439e11ed475deab1263
refs/heads/master: 2fbffee0604fd3f6f9e3aa56e3fe1aa061a32ca6
12 changes: 2 additions & 10 deletions trunk/drivers/staging/comedi/drivers/pcmda12.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ static const struct comedi_lrange pcmda12_ranges = {
}
};

/*
* Useful for shorthand access to the particular board structure
*/
#define thisboard ((const struct pcmda12_board *)dev->board_ptr)

struct pcmda12_private {

unsigned int ao_readback[CHANS];
Expand Down Expand Up @@ -167,6 +162,7 @@ static int ao_rinsn(struct comedi_device *dev, struct comedi_subdevice *s,
static int pcmda12_attach(struct comedi_device *dev,
struct comedi_devconfig *it)
{
const struct pcmda12_board *board = comedi_board(dev);
struct comedi_subdevice *s;
unsigned long iobase;

Expand All @@ -181,11 +177,7 @@ static int pcmda12_attach(struct comedi_device *dev,
}
dev->iobase = iobase;

/*
* Initialize dev->board_name. Note that we can use the "thisboard"
* macro now, since we just initialized it in the last line.
*/
dev->board_name = thisboard->name;
dev->board_name = board->name;

/*
* Allocate the private structure area. alloc_private() is a
Expand Down

0 comments on commit 5274e15

Please sign in to comment.