Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37360
b: refs/heads/master
c: 56b8df1
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov authored and Mauro Carvalho Chehab committed Sep 26, 2006
1 parent 1a21330 commit 1665f83
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 5aff308c5e73307fc495b89b6421b491f56d3657
refs/heads/master: 56b8df11345452103a75060a44429751ce71ee97
9 changes: 8 additions & 1 deletion trunk/drivers/media/video/usbvideo/konicawc.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ static void konicawc_adjust_picture(struct uvd *uvd)
static void konicawc_register_input(struct konicawc *cam, struct usb_device *dev)
{
struct input_dev *input_dev;
int error;

usb_make_path(dev, cam->input_physname, sizeof(cam->input_physname));
strncat(cam->input_physname, "/input0", sizeof(cam->input_physname));
Expand All @@ -242,7 +243,13 @@ static void konicawc_register_input(struct konicawc *cam, struct usb_device *dev

input_dev->private = cam;

input_register_device(cam->input);
error = input_register_device(cam->input);
if (error) {
warn("Failed to register camera's input device, err: %d\n",
error);
input_free_device(cam->input);
cam->input = NULL;
}
}

static void konicawc_unregister_input(struct konicawc *cam)
Expand Down

0 comments on commit 1665f83

Please sign in to comment.