Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337106
b: refs/heads/master
c: 509f3f7
h: refs/heads/master
v: v3
  • Loading branch information
YAMANE Toshiaki authored and Greg Kroah-Hartman committed Oct 22, 2012
1 parent 8b9e035 commit f7dbe29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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: e209939f31736b00e816e10d4a93af5c5fefb0e0
refs/heads/master: 509f3f78c99e89c83714f0cad40ea09e18f21d03
13 changes: 6 additions & 7 deletions trunk/drivers/staging/comedi/drivers/dt9812.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ for my needs.
* says P1).
*/

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
Expand Down Expand Up @@ -1083,8 +1085,7 @@ static int dt9812_attach(struct comedi_device *dev, struct comedi_devconfig *it)
s->insn_write = &dt9812_ao_winsn;
s->insn_read = &dt9812_ao_rinsn;

printk(KERN_INFO "comedi%d: successfully attached to dt9812.\n",
dev->minor);
dev_info(dev->class_dev, "successfully attached to dt9812.\n");

down(&dt9812_mutex);
/* Find a slot for the comedi device */
Expand Down Expand Up @@ -1146,17 +1147,15 @@ static int __init usb_dt9812_init(void)
/* register with the USB subsystem */
result = usb_register(&dt9812_usb_driver);
if (result) {
printk(KERN_ERR KBUILD_MODNAME
": usb_register failed. Error number %d\n", result);
pr_err("usb_register failed. Error number %d\n", result);
return result;
}
/* register with comedi */
result = comedi_driver_register(&dt9812_comedi_driver);
if (result) {
usb_deregister(&dt9812_usb_driver);
printk(KERN_ERR KBUILD_MODNAME
": comedi_driver_register failed. Error number %d\n",
result);
pr_err("comedi_driver_register failed. Error number %d\n",
result);
}

return result;
Expand Down

0 comments on commit f7dbe29

Please sign in to comment.