Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281093
b: refs/heads/master
c: cc780e8
h: refs/heads/master
i:
  281091: ab6f889
v: v3
  • Loading branch information
Ravishankar karkala Mallikarjunayya authored and Greg Kroah-Hartman committed Nov 27, 2011
1 parent 467d230 commit 2c38068
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 3dbeb83c245bbdc906eb54821d1cd77a25f56741
refs/heads/master: cc780e8f92e1576e4ac867e5d26d22ffbc39ddd8
18 changes: 8 additions & 10 deletions trunk/drivers/staging/comedi/drivers/cb_das16_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ static const struct das16cs_board *das16cs_probe(struct comedi_device *dev,
return das16cs_boards + i;
}

printk("unknown board!\n");
dev_dbg(dev->hw_dev, "unknown board!\n");

return NULL;
}
Expand All @@ -163,20 +163,19 @@ static int das16cs_attach(struct comedi_device *dev,
int ret;
int i;

printk("comedi%d: cb_das16_cs: ", dev->minor);
dev_dbg(dev->hw_dev, "comedi%d: cb_das16_cs: attached\n", dev->minor);

link = cur_dev; /* XXX hack */
if (!link)
return -EIO;

dev->iobase = link->resource[0]->start;
printk("I/O base=0x%04lx ", dev->iobase);
dev_dbg(dev->hw_dev, "I/O base=0x%04lx\n", dev->iobase);

printk("fingerprint:\n");
dev_dbg(dev->hw_dev, "fingerprint:\n");
for (i = 0; i < 48; i += 2)
printk("%04x ", inw(dev->iobase + i));
dev_dbg(dev->hw_dev, "%04x\n", inw(dev->iobase + i));

printk("\n");

ret = request_irq(link->irq, das16cs_interrupt,
IRQF_SHARED, "cb_das16_cs", dev);
Expand All @@ -185,7 +184,7 @@ static int das16cs_attach(struct comedi_device *dev,

dev->irq = link->irq;

printk("irq=%u ", dev->irq);
dev_dbg(dev->hw_dev, "irq=%u\n", dev->irq);

dev->board_ptr = das16cs_probe(dev, link);
if (!dev->board_ptr)
Expand Down Expand Up @@ -252,14 +251,13 @@ static int das16cs_attach(struct comedi_device *dev,
s->type = COMEDI_SUBD_UNUSED;
}

printk("attached\n");

return 1;
}

static int das16cs_detach(struct comedi_device *dev)
{
printk("comedi%d: das16cs: remove\n", dev->minor);
dev_dbg(dev->hw_dev, "comedi%d: das16cs: remove\n", dev->minor);

if (dev->irq)
free_irq(dev->irq, dev);
Expand Down Expand Up @@ -312,7 +310,7 @@ static int das16cs_ai_rinsn(struct comedi_device *dev,
break;
}
if (to == TIMEOUT) {
printk("cb_das16_cs: ai timeout\n");
dev_dbg(dev->hw_dev, "cb_das16_cs: ai timeout\n");
return -ETIME;
}
data[i] = (unsigned short)inw(dev->iobase + 0);
Expand Down

0 comments on commit 2c38068

Please sign in to comment.