Skip to content

Commit

Permalink
V4L/DVB: gspca_main: Fix a compile error when CONFIG_INPUT is not set
Browse files Browse the repository at this point in the history
gspca_main: Fix a compile error when CONFIG_INPUT is not set.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Hans de Goede authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent 10ee240 commit e763752
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/media/video/gspca/gspca.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ static void gspca_input_destroy_urb(struct gspca_dev *gspca_dev)
}
#else
#define gspca_input_connect(gspca_dev) 0
#define gspca_input_create_urb(gspca_dev) 0
#define gspca_input_create_urb(gspca_dev)
#define gspca_input_destroy_urb(gspca_dev)
#endif

Expand Down Expand Up @@ -2315,8 +2315,10 @@ int gspca_dev_probe(struct usb_interface *intf,

return 0;
out:
#ifdef CONFIG_INPUT
if (gspca_dev->input_dev)
input_unregister_device(gspca_dev->input_dev);
#endif
kfree(gspca_dev->usb_buf);
kfree(gspca_dev);
return ret;
Expand Down

0 comments on commit e763752

Please sign in to comment.