Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186800
b: refs/heads/master
c: 9a16a92
h: refs/heads/master
v: v3
  • Loading branch information
Graham M Howe authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent 7ccd547 commit 261a658
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 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: 3c2aabc41da7e9f957bc826363115a54764fb396
refs/heads/master: 9a16a92c11e82a0a80b4847343cfb8b5c54ed6b6
24 changes: 12 additions & 12 deletions trunk/drivers/staging/comedi/drivers/ni_daq_700.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,15 @@ struct dio700_board {
static const struct dio700_board dio700_boards[] = {
{
.name = "daqcard-700",
.device_id = 0x4743, /* 0x10b is manufacturer id, 0x4743 is device id */
/* 0x10b is manufacturer id, 0x4743 is device id */
.device_id = 0x4743,
.bustype = pcmcia_bustype,
.have_dio = 1,
},
{
.name = "ni_daq_700",
.device_id = 0x4743, /* 0x10b is manufacturer id, 0x4743 is device id */
/* 0x10b is manufacturer id, 0x4743 is device id */
.device_id = 0x4743,
.bustype = pcmcia_bustype,
.have_dio = 1,
},
Expand Down Expand Up @@ -309,11 +311,11 @@ int subdev_700_init(struct comedi_device *dev, struct comedi_subdevice *s,
return -ENOMEM;

CALLBACK_ARG = arg;
if (cb == NULL) {
if (cb == NULL)
CALLBACK_FUNC = subdev_700_cb;
} else {
else
CALLBACK_FUNC = cb;
}

s->insn_bits = subdev_700_insn;
s->insn_config = subdev_700_insn_config;

Expand Down Expand Up @@ -345,12 +347,10 @@ int subdev_700_init_irq(struct comedi_device *dev, struct comedi_subdevice *s,

void subdev_700_cleanup(struct comedi_device *dev, struct comedi_subdevice *s)
{
if (s->private) {
if (subdevpriv->have_irq) {
}
if (s->private)
if (subdevpriv->have_irq)

kfree(s->private);
}
kfree(s->private);
}

EXPORT_SYMBOL(subdev_700_init);
Expand Down Expand Up @@ -390,9 +390,9 @@ static int dio700_attach(struct comedi_device *dev, struct comedi_devconfig *it)
printk("comedi%d: ni_daq_700: %s, io 0x%lx", dev->minor,
thisboard->name, iobase);
#ifdef incomplete
if (irq) {
if (irq)
printk(", irq %u", irq);
}

#endif

printk("\n");
Expand Down

0 comments on commit 261a658

Please sign in to comment.