backports: add some missing header files
authorHauke Mehrtens <hauke@hauke-m.de>
Fri, 24 Oct 2014 20:33:20 +0000 (22:33 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 25 Oct 2014 09:10:07 +0000 (11:10 +0200)
The hackrf driver needs PAGE_ALIGN() from mm.h.
The ir-hix5hd2 driver needs of_get_property() from of.h.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
patches/collateral-evolutions/media/0004-missing-include/hackrf.patch [new file with mode: 0644]
patches/collateral-evolutions/media/0004-missing-include/ir-hix5hd2.patch [new file with mode: 0644]

diff --git a/patches/collateral-evolutions/media/0004-missing-include/hackrf.patch b/patches/collateral-evolutions/media/0004-missing-include/hackrf.patch
new file mode 100644 (file)
index 0000000..ac0b501
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/drivers/media/usb/hackrf/hackrf.c
++++ b/drivers/media/usb/hackrf/hackrf.c
+@@ -22,6 +22,7 @@
+ #include <media/v4l2-ctrls.h>
+ #include <media/v4l2-event.h>
+ #include <media/videobuf2-vmalloc.h>
++#include <linux/mm.h>
+ /* HackRF USB API commands (from HackRF Library) */
+ enum {
diff --git a/patches/collateral-evolutions/media/0004-missing-include/ir-hix5hd2.patch b/patches/collateral-evolutions/media/0004-missing-include/ir-hix5hd2.patch
new file mode 100644 (file)
index 0000000..e7891f8
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/drivers/media/rc/ir-hix5hd2.c
++++ b/drivers/media/rc/ir-hix5hd2.c
+@@ -15,6 +15,7 @@
+ #include <linux/of_device.h>
+ #include <linux/regmap.h>
+ #include <media/rc-core.h>
++#include <linux/of.h>
+ /* Allow the driver to compile on all architectures */
+ #ifndef writel_relaxed