summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vidix/dha.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/vidix/dha.c b/vidix/dha.c
index 9e51d31434..1b8436de1e 100644
--- a/vidix/dha.c
+++ b/vidix/dha.c
@@ -122,7 +122,9 @@ dha_helper_way:
}
#endif
+#ifdef CONFIG_DHAHELPER
dev_mem_way:
+#endif
#ifdef DEV_APERTURE
if ((mem_fd = open(DEV_APERTURE, O_RDWR)) == -1)
perror("libdha: opening aperture failed");
@@ -143,7 +145,9 @@ dev_mem_way:
return MAP_FAILED;
}
+#ifdef CONFIG_DHAHELPER
mmap:
+#endif
return mmap(0,size,PROT_READ|PROT_WRITE,MAP_SHARED,mem_fd,base);
}