Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337280
b: refs/heads/master
c: 4f72b73
h: refs/heads/master
v: v3
  • Loading branch information
YAMANE Toshiaki authored and Greg Kroah-Hartman committed Oct 25, 2012
1 parent 0bc01fe commit dacb1c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 2847ff5d1b63496c2e3eedb8efad2752cc2e195d
refs/heads/master: 4f72b738b1c8a9502a297f998b83ffae0815024b
6 changes: 4 additions & 2 deletions trunk/drivers/staging/comedi/drivers/serial2002.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ Status: in development
*/

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include "../comedidev.h"

#include <linux/delay.h>
Expand Down Expand Up @@ -272,7 +274,7 @@ static struct serial_data serial_read(struct file *f, int timeout)

length++;
if (data < 0) {
printk(KERN_ERR "serial2002 error\n");
pr_err("Failed to read serial.\n");
break;
} else if (data & 0x80) {
result.value = (result.value << 7) | (data & 0x7f);
Expand Down Expand Up @@ -346,7 +348,7 @@ static int serial_2002_open(struct comedi_device *dev)
devpriv->tty = filp_open(port, O_RDWR, 0);
if (IS_ERR(devpriv->tty)) {
result = (int)PTR_ERR(devpriv->tty);
printk(KERN_ERR "serial_2002: file open error = %d\n", result);
dev_err(dev->class_dev, "file open error = %d\n", result);
} else {
struct config_t {

Expand Down

0 comments on commit dacb1c7

Please sign in to comment.