[PATCH] compat code: Fix compile failure of av7110.c on Kernel 2.6.27

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi list!

av7110.c does not compile against a 2.6.27 kernel, as the inclusion of 
linux/byteorder/swabb.h is now conditional with

#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27)

But the byteorder changes in kernel took place after Kernel 2.6.27, so the
compat code needs to look like this:

#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 28)

Signed-off-by: Matthias Schwarzott <zzam@xxxxxxxxxx>
compat code: Fix compile failure of av7110.c on Kernel 2.6.27

av7110.c does not compile against a 2.6.27 kernel, as the
inclusion of linux/byteorder/swabb.h is now conditional with

#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27)

But the byteorder changes in kernel took place after Kernel 2.6.27, so the
compat code needs to look like this:

#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 28)

Signed-off-by: Matthias Schwarzott <zzam@xxxxxxxxxx>

Index: v4l-dvb/linux/drivers/media/dvb/ttpci/av7110.c
===================================================================
--- v4l-dvb.orig/linux/drivers/media/dvb/ttpci/av7110.c
+++ v4l-dvb/linux/drivers/media/dvb/ttpci/av7110.c
@@ -52,7 +52,7 @@
 #include <linux/kthread.h>
 #include <asm/unaligned.h>
 #include <asm/byteorder.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 28)
 #include <linux/byteorder/swabb.h>
 #endif
 
_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux