[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 5a207eecd35725d03cda5a9236582aada9471a77..36b0cfa2c541e6b7fcb5a344d2d22fee6266ccb1 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 805d8c8a3c1805f7dabf97b719936c35e9f1fdac..35b9216e48cd274b02dc911554b02247a781cd01 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"