Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269504
b: refs/heads/master
c: 8d92847
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov committed Oct 11, 2011
1 parent 0bf35c5 commit f936748
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 8c31eb01e1ab91df69c60554b9aec2d522d414e0
refs/heads/master: 8d92847700870e33cb92b43bde0a81f5a4298028
12 changes: 7 additions & 5 deletions trunk/drivers/input/serio/serio_raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ static int serio_raw_connect(struct serio *serio, struct serio_driver *drv)
int err;

if (!(serio_raw = kzalloc(sizeof(struct serio_raw), GFP_KERNEL))) {
printk(KERN_ERR "serio_raw.c: can't allocate memory for a device\n");
dev_dbg(&serio->dev, "can't allocate memory for a device\n");
return -ENOMEM;
}

Expand Down Expand Up @@ -311,13 +311,14 @@ static int serio_raw_connect(struct serio *serio, struct serio_driver *drv)
}

if (err) {
printk(KERN_INFO "serio_raw: failed to register raw access device for %s\n",
dev_err(&serio->dev,
"failed to register raw access device for %s\n",
serio->phys);
goto out_close;
}

printk(KERN_INFO "serio_raw: raw access enabled on %s (%s, minor %d)\n",
serio->phys, serio_raw->name, serio_raw->dev.minor);
dev_info(&serio->dev, "raw access enabled on %s (%s, minor %d)\n",
serio->phys, serio_raw->name, serio_raw->dev.minor);
goto out;

out_close:
Expand All @@ -337,7 +338,8 @@ static int serio_raw_reconnect(struct serio *serio)
struct serio_driver *drv = serio->drv;

if (!drv || !serio_raw) {
printk(KERN_DEBUG "serio_raw: reconnect request, but serio is disconnected, ignoring...\n");
dev_dbg(&serio->dev,
"reconnect request, but serio is disconnected, ignoring...\n");
return -1;
}

Expand Down

0 comments on commit f936748

Please sign in to comment.