提交 e7637521 编写于 作者: H Hans de Goede 提交者: Mauro Carvalho Chehab

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: NHans de Goede <hdegoede@redhat.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 10ee2402
...@@ -281,7 +281,7 @@ static void gspca_input_destroy_urb(struct gspca_dev *gspca_dev) ...@@ -281,7 +281,7 @@ static void gspca_input_destroy_urb(struct gspca_dev *gspca_dev)
} }
#else #else
#define gspca_input_connect(gspca_dev) 0 #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) #define gspca_input_destroy_urb(gspca_dev)
#endif #endif
...@@ -2315,8 +2315,10 @@ int gspca_dev_probe(struct usb_interface *intf, ...@@ -2315,8 +2315,10 @@ int gspca_dev_probe(struct usb_interface *intf,
return 0; return 0;
out: out:
#ifdef CONFIG_INPUT
if (gspca_dev->input_dev) if (gspca_dev->input_dev)
input_unregister_device(gspca_dev->input_dev); input_unregister_device(gspca_dev->input_dev);
#endif
kfree(gspca_dev->usb_buf); kfree(gspca_dev->usb_buf);
kfree(gspca_dev); kfree(gspca_dev);
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册