From 32f8b8ea3ec164ca62a54c495c21ca6d8e0f26b8 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Tue, 10 Feb 2009 21:31:59 +0100 Subject: Allow compiling some PCI drivers on older kernels From: Hans Verkuil This patch fixes build of bttv, cx88 and saa7134 on vanilla kernels older than 2.6.22. VIDEOBUF_DMA_SG has a dependency on CONFIG_HAS_DMA, which was apparently introduced in 2.6.22 and didn't exist in 2.6.21. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- v4l/scripts/make_kconfig.pl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'v4l/scripts') diff --git a/v4l/scripts/make_kconfig.pl b/v4l/scripts/make_kconfig.pl index 7c259eeb6..144325c34 100755 --- a/v4l/scripts/make_kconfig.pl +++ b/v4l/scripts/make_kconfig.pl @@ -537,6 +537,11 @@ if (!defined $kernopts{HAS_IOMEM} && cmp_ver($kernver, '2.6.22') < 0) { $kernopts{HAS_IOMEM} = 2; } +# Kernel < 2.6.22 is missing the HAS_DMA option +if (!defined $kernopts{HAS_DMA} && cmp_ver($kernver, '2.6.22') < 0) { + $kernopts{HAS_DMA} = 2; +} + # Kernel < 2.6.23 is missing the VIRT_TO_BUS option if (!defined $kernopts{VIRT_TO_BUS} && cmp_ver($kernver, '2.6.23') < 0) { # VIRT_TO_BUS -> !PPC64 -- cgit v1.2.3