OSDN Git Service

[media] smiapp: fix compilation breakage
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 15 May 2012 13:36:09 +0000 (10:36 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 15 May 2012 13:36:09 +0000 (10:36 -0300)
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>
drivers/media/video/smiapp/Makefile
drivers/media/video/smiapp/smiapp.h

index 5a207ee..36b0cfa 100644 (file)
@@ -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
index 805d8c8..35b9216 100644 (file)
@@ -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"