> On Thursday 13 September 2007 14:36:27
aherrman@arcor.de wrote:
> > 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.
>
> No, wait. The driver really is V4L2 only. If you can, please fix it by
> replacing to_video_device() with container_of() instead:
>
> cam = video_get_drvdata(container_of(cd, struct video_device, class_dev));