Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197452
b: refs/heads/master
c: 0263869
h: refs/heads/master
v: v3
  • Loading branch information
Mark authored and Greg Kroah-Hartman committed May 18, 2010
1 parent 330c9a4 commit 9df74e0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 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: 5763dcab5cd7de27d6db50efd393c416177c56c7
refs/heads/master: 026386976067996a6fc084b1926558522126cfdd
15 changes: 10 additions & 5 deletions trunk/drivers/staging/comedi/drivers/8255.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,6 @@ static int dev_8255_attach(struct comedi_device *dev,
unsigned long iobase;
int i;

printk("comedi%d: 8255:", dev->minor);

dev->board_name = "8255";

for (i = 0; i < COMEDI_NDEVCONFOPTS; i++) {
Expand All @@ -406,13 +404,20 @@ static int dev_8255_attach(struct comedi_device *dev,
break;
}
if (i == 0) {
printk(" no devices specified\n");
printk(KERN_WARNING
"comedi%d: 8255: no devices specified\n", dev->minor);
return -EINVAL;
}

ret = alloc_subdevices(dev, i);
if (ret < 0)
if (ret < 0) {
/* FIXME this printk call should give a proper message, the
* below line just maintains previous functionality */
printk("comedi%d: 8255:", dev->minor);
return ret;
}

printk(KERN_INFO "comedi%d: 8255:", dev->minor);

for (i = 0; i < dev->n_subdevices; i++) {
iobase = it->options[i];
Expand All @@ -439,7 +444,7 @@ static int dev_8255_detach(struct comedi_device *dev)
unsigned long iobase;
struct comedi_subdevice *s;

printk("comedi%d: 8255: remove\n", dev->minor);
printk(KERN_INFO "comedi%d: 8255: remove\n", dev->minor);

for (i = 0; i < dev->n_subdevices; i++) {
s = dev->subdevices + i;
Expand Down

0 comments on commit 9df74e0

Please sign in to comment.