The patch number 10513 was added via Mauro Carvalho Chehab <mche...@redhat.com>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <linux-me...@vger.kernel.org>

------

From: Hans Verkuil  <hverk...@xs4all.nl>
Allow compiling some PCI drivers on older kernels


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 <hverk...@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mche...@redhat.com>


---

 v4l/scripts/make_kconfig.pl |    5 +++++
 1 file changed, 5 insertions(+)

diff -r 4bd7a4fe3232 -r 960985ba30c6 v4l/scripts/make_kconfig.pl
--- a/v4l/scripts/make_kconfig.pl       Mon Feb 09 14:12:41 2009 -0200
+++ b/v4l/scripts/make_kconfig.pl       Tue Feb 10 21:31:59 2009 +0100
@@ -537,6 +537,11 @@ if (!defined $kernopts{HAS_IOMEM} && cmp
     $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


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/960985ba30c69c03fb030edd451bb26846ca75a0

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to