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 <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Hans de Goede 2010-02-19 05:11:09 -03:00 committed by Mauro Carvalho Chehab
parent 10ee240200
commit e7637521ac
1 changed files with 3 additions and 1 deletions

View File

@ -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;