From e7637521ac92ce99045b8f8a9c1419bb7814ff9a Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 19 Feb 2010 05:11:09 -0300 Subject: V4L/DVB: gspca_main: Fix a compile error when CONFIG_INPUT is not set gspca_main: Fix a compile error when CONFIG_INPUT is not set. Signed-off-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab --- drivers/media/video/gspca/gspca.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'drivers/media/video') diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c index a156dd42bc40..222af479150b 100644 --- a/drivers/media/video/gspca/gspca.c +++ b/drivers/media/video/gspca/gspca.c @@ -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 @@ -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; -- cgit v1.2.3