1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-07-16 22:38:04 +00:00
Files
meta-ti/recipes-ti/linuxutils/ti-linuxutils/linuxutils_2_26-sdmak-fixes.patch
Enric Balletbo i Serra a9a74cc33d ti-linuxutils: Fix build problems for kernel up to 3.17
Add to patches to fix the build of cmemk and sdmak kernel modules.

Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2014-10-08 13:50:11 -04:00

26 lines
759 B
Diff

Index: linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/sdma/src/module/sdmak.c
===================================================================
--- linuxutils_2_26_01_02.orig/packages/ti/sdo/linuxutils/sdma/src/module/sdmak.c
+++ linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/sdma/src/module/sdmak.c
@@ -44,7 +44,7 @@
#include <mach/hardware.h>
#include <mach/dma.h>
#include <mach/tc.h>
-#else
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0)
#include <plat/hardware.h>
#include <plat/dma.h>
#include <plat/tc.h>
@@ -97,6 +97,11 @@
#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18) */
+#ifndef OMAP_DMA_NO_DEVICE
+#include <linux/omap-dma.h>
+#define OMAP_DMA_NO_DEVICE 0
+#endif
+
#include "../interface/sdma.h"
struct channel {