diff mbox

v4l-dvb-compat: Fix build for older kernels using DIV_ROUND_CLOSEST

Message ID 1250872881.3139.23.camel@palomino.walls.org (mailing list archive)
State Accepted
Headers show

Commit Message

Andy Walls Aug. 21, 2009, 4:41 p.m. UTC
DIV_ROUND_CLOSEST() is not available on older kernels.  Include compat.h
in a few files to fix building v4l-dvb from mercurial on older kernels.

Reported-by: Lou Otway <lotway@nildram.co.uk>
Reported-by: Avo Aasma <Avo.Aasma@webit.ee>
Signed-off-by: Andy Walls <awalls@radix.net>




--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff -r d0ec20a376fe linux/drivers/media/dvb/frontends/stb6100.c
--- a/linux/drivers/media/dvb/frontends/stb6100.c	Thu Aug 20 01:30:58 2009 +0000
+++ b/linux/drivers/media/dvb/frontends/stb6100.c	Fri Aug 21 12:33:46 2009 -0400
@@ -24,6 +24,7 @@ 
 #include <linux/module.h>
 #include <linux/string.h>
 
+#include "compat.h"
 #include "dvb_frontend.h"
 #include "stb6100.h"
 
diff -r d0ec20a376fe linux/drivers/media/dvb/frontends/tda10021.c
--- a/linux/drivers/media/dvb/frontends/tda10021.c	Thu Aug 20 01:30:58 2009 +0000
+++ b/linux/drivers/media/dvb/frontends/tda10021.c	Fri Aug 21 12:33:46 2009 -0400
@@ -29,6 +29,7 @@ 
 #include <linux/string.h>
 #include <linux/slab.h>
 
+#include "compat.h"
 #include "dvb_frontend.h"
 #include "tda1002x.h"
 
diff -r d0ec20a376fe linux/drivers/media/dvb/frontends/ves1820.c
--- a/linux/drivers/media/dvb/frontends/ves1820.c	Thu Aug 20 01:30:58 2009 +0000
+++ b/linux/drivers/media/dvb/frontends/ves1820.c	Fri Aug 21 12:33:46 2009 -0400
@@ -27,6 +27,7 @@ 
 #include <linux/slab.h>
 #include <asm/div64.h>
 
+#include "compat.h"
 #include "dvb_frontend.h"
 #include "ves1820.h"