Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317677
b: refs/heads/master
c: b48ad33
h: refs/heads/master
i:
  317675: d75d277
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jul 6, 2012
1 parent f38c545 commit b9f76e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 2be036653663f809d1034d365f8285a967e589da
refs/heads/master: b48ad330d56a6cce7897132d9cb68cc2f19358e8
10 changes: 4 additions & 6 deletions trunk/drivers/staging/comedi/drivers/ni_670x.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ static int ni_670x_find_device(struct comedi_device *dev, int bus, int slot)
}
}
}
printk(KERN_INFO "no device found\n");
dev_warn(dev->class_dev, "no device found\n");
mite_list_devices();
return -EIO;
}
Expand All @@ -231,8 +231,6 @@ static int ni_670x_attach(struct comedi_device *dev,
int ret;
int i;

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

ret = alloc_private(dev, sizeof(*devpriv));
if (ret < 0)
return ret;
Expand All @@ -245,12 +243,11 @@ static int ni_670x_attach(struct comedi_device *dev,

ret = mite_setup(devpriv->mite);
if (ret < 0) {
printk(KERN_WARNING "error setting up mite\n");
dev_warn(dev->class_dev, "error setting up mite\n");
return ret;
}
dev->board_name = thisboard->name;
dev->irq = mite_irq(devpriv->mite);
printk(KERN_INFO " %s", dev->board_name);

ret = comedi_alloc_subdevices(dev, 2);
if (ret)
Expand Down Expand Up @@ -295,7 +292,8 @@ static int ni_670x_attach(struct comedi_device *dev,
/* Config of ao registers */
writel(0x00, devpriv->mite->daq_io_addr + AO_CONTROL_OFFSET);

printk(KERN_INFO "attached\n");
dev_info(dev->class_dev, "%s: %s attached\n",
dev->driver->driver_name, dev->board_name);

return 1;
}
Expand Down

0 comments on commit b9f76e2

Please sign in to comment.