Browse Source

[media] smiapp: fix compilation breakage

The usage of ../*.h breaks out-of-tree compilation and likely breaks
compilation when O= argument is used. Instead of doing that,
just add the include path via Makefile.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab 13 years ago
parent
commit
f9b26cd8e2
2 changed files with 3 additions and 1 deletions
  1. 2 0
      drivers/media/video/smiapp/Makefile
  2. 1 1
      drivers/media/video/smiapp/smiapp.h

+ 2 - 0
drivers/media/video/smiapp/Makefile

@@ -1,3 +1,5 @@
 smiapp-objs			+= smiapp-core.o smiapp-regs.o \
 				   smiapp-quirk.o smiapp-limits.o
 obj-$(CONFIG_VIDEO_SMIAPP)	+= smiapp.o
+
+ccflags-y += -Idrivers/media/video

+ 1 - 1
drivers/media/video/smiapp/smiapp.h

@@ -30,7 +30,7 @@
 #include <media/v4l2-subdev.h>
 #include <media/smiapp.h>
 
-#include "../smiapp-pll.h"
+#include "smiapp-pll.h"
 #include "smiapp-reg.h"
 #include "smiapp-regs.h"
 #include "smiapp-quirk.h"