Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317079
b: refs/heads/master
c: 354c00a
h: refs/heads/master
i:
  317077: 7eddc16
  317075: 8781112
  317071: 1e7c23d
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jun 5, 2012
1 parent 993d52f commit 34e980b
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 609dd342fb7eab79d42350455c2d86238c7dc15f
refs/heads/master: 354c00a67697fc7a56b540647ef7fe93333ed903
7 changes: 3 additions & 4 deletions trunk/drivers/staging/comedi/drivers/rti800.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ struct rti800_board {
int has_ao;
};

#define this_board ((const struct rti800_board *)dev->board_ptr)

static irqreturn_t rti800_interrupt(int irq, void *dev);

struct rti800_private {
Expand Down Expand Up @@ -309,6 +307,7 @@ static int rti800_do_insn_bits(struct comedi_device *dev,

static int rti800_attach(struct comedi_device *dev, struct comedi_devconfig *it)
{
const struct rti800_board *board = comedi_board(dev);
unsigned int irq;
unsigned long iobase;
int ret;
Expand Down Expand Up @@ -347,7 +346,7 @@ static int rti800_attach(struct comedi_device *dev, struct comedi_devconfig *it)
printk(KERN_INFO "( no irq )\n");
}

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

ret = alloc_subdevices(dev, 4);
if (ret < 0)
Expand Down Expand Up @@ -386,7 +385,7 @@ static int rti800_attach(struct comedi_device *dev, struct comedi_devconfig *it)
}

s++;
if (this_board->has_ao) {
if (board->has_ao) {
/* ao subdevice (only on rti815) */
s->type = COMEDI_SUBD_AO;
s->subdev_flags = SDF_WRITABLE;
Expand Down

0 comments on commit 34e980b

Please sign in to comment.