Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760908AbYBYALU (ORCPT ); Sun, 24 Feb 2008 19:11:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754184AbYBYAJH (ORCPT ); Sun, 24 Feb 2008 19:09:07 -0500 Received: from smtp4.pp.htv.fi ([213.243.153.38]:44538 "EHLO smtp4.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754170AbYBYAJG (ORCPT ); Sun, 24 Feb 2008 19:09:06 -0500 Date: Mon, 25 Feb 2008 02:08:10 +0200 From: Adrian Bunk To: Toralf =?utf-8?Q?F=C3=B6rster?= , mchehab@infradead.org Cc: video4linux-list@redhat.com, linux-kernel@vger.kernel.org Subject: [2.6 patch] VIDEO_VIVI must depend on VIDEO_DEV Message-ID: <20080225000810.GI2088@cs181133002.pp.htv.fi> References: <200802241433.30383.toralf.foerster@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200802241433.30383.toralf.foerster@gmx.de> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1626 Lines: 44 This patch fixes the following compile error with VIDEO_VIVI=y, VIDEO_DEV=m reported by Toralf Förster: <-- snip --> ... LD .tmp_vmlinux1 drivers/built-in.o: In function `vivi_release': vivi.c:(.text+0x322f5): undefined reference to `video_unregister_device' vivi.c:(.text+0x32337): undefined reference to `video_device_release' drivers/built-in.o: In function `vivi_open': vivi.c:(.text+0x32845): undefined reference to `v4l2_type_names' drivers/built-in.o: In function `vivi_init': vivi.c:(.init.text+0x1d20): undefined reference to `video_device_alloc' vivi.c:(.init.text+0x1d48): undefined reference to `video_register_device' drivers/built-in.o:(.rodata+0x1b40): undefined reference to `video_ioctl2'drivers/built-in.o:(.data+0x140c): undefined reference to `video_device_release' make: *** [.tmp_vmlinux1] Error 1 <-- snip --> Signed-off-by: Adrian Bunk --- 0985a480a30ce903211cf285f543e4929007ef95 diff --git a/drivers/media/video/Kconfig b/drivers/media/video/Kconfig index 37072a2..2c292ee 100644 --- a/drivers/media/video/Kconfig +++ b/drivers/media/video/Kconfig @@ -382,7 +382,7 @@ endmenu # encoder / decoder chips config VIDEO_VIVI tristate "Virtual Video Driver" - depends on VIDEO_V4L2 && !SPARC32 && !SPARC64 + depends on VIDEO_DEV && VIDEO_V4L2 && !SPARC32 && !SPARC64 select VIDEOBUF_VMALLOC default n ---help--- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/