Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175093
b: refs/heads/master
c: bacf58a
h: refs/heads/master
i:
  175091: 15cd874
v: v3
  • Loading branch information
BRAGA, Bruno authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent b9dd870 commit 64d32d7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 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: d1babfd46609a3380ca4e8df97568e7da9b02eab
refs/heads/master: bacf58a80330b540b5156aa27b9a796b6b3baae2
37 changes: 19 additions & 18 deletions trunk/drivers/staging/comedi/drivers/adl_pci8164.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Configuration Options:
*/

#include "../comedidev.h"
#include <linux/kernel.h>
#include <linux/delay.h>
#include "comedi_fc.h"
#include "comedi_pci.h"
Expand Down Expand Up @@ -128,8 +129,8 @@ static int adl_pci8164_attach(struct comedi_device *dev,
struct comedi_subdevice *s;
int bus, slot;

printk("comedi: attempt to attach...\n");
printk("comedi%d: adl_pci8164\n", dev->minor);
printk(KERN_INFO "comedi: attempt to attach...\n");
printk(KERN_INFO "comedi%d: adl_pci8164\n", dev->minor);

dev->board_name = "pci8164";
bus = it->options[0];
Expand All @@ -150,19 +151,18 @@ static int adl_pci8164_attach(struct comedi_device *dev,
if (bus || slot) {
/* requested particular bus/slot */
if (pcidev->bus->number != bus
|| PCI_SLOT(pcidev->devfn) != slot) {
|| PCI_SLOT(pcidev->devfn) != slot)
continue;
}
}
devpriv->pci_dev = pcidev;
if (comedi_pci_enable(pcidev, "adl_pci8164") < 0) {
printk
("comedi%d: Failed to enable PCI device and request regions\n",
dev->minor);
printk(KERN_ERR "comedi%d: Failed to enable "
"PCI device and request regions\n", dev->minor);
return -EIO;
}
dev->iobase = pci_resource_start(pcidev, 2);
printk("comedi: base addr %4lx\n", dev->iobase);
printk(KERN_DEBUG "comedi: base addr %4lx\n",
dev->iobase);

s = dev->subdevices + 0;
s->type = COMEDI_SUBD_PROC;
Expand Down Expand Up @@ -204,25 +204,24 @@ static int adl_pci8164_attach(struct comedi_device *dev,
s->insn_read = adl_pci8164_insn_read_buf1;
s->insn_write = adl_pci8164_insn_write_buf1;

printk("comedi: attached\n");
printk(KERN_INFO "comedi: attached\n");

return 1;
}
}

printk("comedi%d: no supported board found! (req. bus/slot : %d/%d)\n",
dev->minor, bus, slot);
printk(KERN_ERR "comedi%d: no supported board found!"
"(req. bus/slot : %d/%d)\n", dev->minor, bus, slot);
return -EIO;
}

static int adl_pci8164_detach(struct comedi_device *dev)
{
printk("comedi%d: pci8164: remove\n", dev->minor);
printk(KERN_INFO "comedi%d: pci8164: remove\n", dev->minor);

if (devpriv && devpriv->pci_dev) {
if (dev->iobase) {
if (dev->iobase)
comedi_pci_disable(devpriv->pci_dev);
}
pci_dev_put(devpriv->pci_dev);
}

Expand Down Expand Up @@ -267,8 +266,9 @@ static void adl_pci8164_insn_read(struct comedi_device *dev,
}

data[0] = inw(dev->iobase + axis_reg + offset);
printk("comedi: pci8164 %s read -> %04X:%04X on axis %s\n", action,
data[0], data[1], axisname);
printk(KERN_DEBUG "comedi: pci8164 %s read -> "
"%04X:%04X on axis %s\n",
action, data[0], data[1], axisname);
}

static int adl_pci8164_insn_read_msts(struct comedi_device *dev,
Expand Down Expand Up @@ -347,8 +347,9 @@ static void adl_pci8164_insn_out(struct comedi_device *dev,

outw(data[0], dev->iobase + axis_reg + offset);

printk("comedi: pci8164 %s write -> %04X:%04X on axis %s\n", action,
data[0], data[1], axisname);
printk(KERN_DEBUG "comedi: pci8164 %s write -> "
"%04X:%04X on axis %s\n",
action, data[0], data[1], axisname);

}

Expand Down

0 comments on commit 64d32d7

Please sign in to comment.