login
Header Space

 
 

[PATCH] v4l: Build error with et61x251, if V4L1_COMPAT is not selected

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <luca.risolia@...>, <akpm@...>
Cc: <linux-usb-devel@...>, <video4linux-list@...>, <linux-kernel@...>
Date: Thursday, September 13, 2007 - 8:36 am

With current git tree I get an build error
for et61x251, if V4L1_COMPAT is not selected:

drivers/media/video/et61x251/et61x251_core.c: In et61x251_show_:
drivers/media/video/et61x251/et61x251_core.c:718: error: implicit declaration of to_video_device

Fix: add VIDEO_V4L1_COMPAT as a dependency for this driver.

Signed-off-by: Andreas Herrmann <aherrman@arcor.de>
---
 drivers/media/video/et61x251/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/et61x251/Kconfig b/drivers/media/video/et61x251/Kconfig
index dcc1a03..9143424 100644
--- a/drivers/media/video/et61x251/Kconfig
+++ b/drivers/media/video/et61x251/Kconfig
@@ -1,6 +1,6 @@
 config USB_ET61X251
 	tristate "USB ET61X[12]51 PC Camera Controller support"
-	depends on VIDEO_V4L2
+	depends on VIDEO_V4L2 && VIDEO_V4L1_COMPAT
 	---help---
 	  Say Y here if you want support for cameras based on Etoms ET61X151
 	  or ET61X251 PC Camera Controllers.
-- 
1.5.3


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] v4l: Build error with et61x251, if V4L1_COMPAT is no..., , (Thu Sep 13, 8:36 am)
[PATCH] v4l: fix build error for et61x251 driver, Andreas Herrmann, (Thu Sep 13, 6:27 pm)
Re: [PATCH] v4l: fix build error for et61x251 driver, Luca Risolia, (Thu Sep 13, 6:28 pm)
Re: [PATCH] v4l: fix build error for et61x251 driver, Linus Torvalds, (Thu Sep 13, 8:09 pm)
Re: [PATCH] v4l: fix build error for et61x251 driver, Luca Risolia, (Thu Sep 13, 9:53 pm)
Re: [PATCH] v4l: fix build error for et61x251 driver, Mauro Carvalho Chehab, (Fri Sep 14, 8:50 am)
Re: [PATCH] v4l: fix build error for et61x251 driver, Luca Risolia, (Fri Sep 14, 9:57 am)
Re: [PATCH] v4l: fix build error for et61x251 driver, Mauro Carvalho Chehab, (Fri Sep 14, 11:56 am)
speck-geostationary