]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[media] c8sectpfe: fix pinctrl dependencies
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 11 Aug 2015 21:58:31 +0000 (18:58 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 11 Aug 2015 22:19:08 +0000 (19:19 -0300)
compiling on some archs fail with:

drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c:540:8: error: implicit declaration of function ‘pinctrl_select_state’ [-Werror=implicit-function-declaration]
  ret = pinctrl_select_state(fei->pinctrl, tsin->pstate);

That's due the need of including pinctrl.h header and because
CONFIG_PINCTRL needs to be true.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/sti/c8sectpfe/Kconfig
drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c

index a7227d2ab6cc2dfd261e3ff561519e93908da185..1b1110d7374f34b8ef05288e9a59de572bd288e2 100644 (file)
@@ -1,6 +1,7 @@
 config DVB_C8SECTPFE
        tristate "STMicroelectronics C8SECTPFE DVB support"
-       depends on DVB_CORE && I2C && (ARCH_STI || ARCH_MULTIPLATFORM || COMPILE_TEST)
+       depends on PINCTRL && DVB_CORE && I2C
+       depends on ARCH_STI || ARCH_MULTIPLATFORM || COMPILE_TEST
        select LIBELF_32
        select FW_LOADER
        select FW_LOADER_USER_HELPER_FALLBACK
index 955d8daf055f866bb0edb3a57ad33c2c0a4722b1..1586a1e6836d9f2e092ff8e830b9358c7b1dfb85 100644 (file)
@@ -33,6 +33,7 @@
 #include <linux/time.h>
 #include <linux/version.h>
 #include <linux/wait.h>
+#include <linux/pinctrl/pinctrl.h>
 
 #include "c8sectpfe-core.h"
 #include "c8sectpfe-common.h"