diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-08-11 17:58:31 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-08-11 18:19:08 -0400 |
commit | 53cc7c9043f0a68a66e53623b114c86051a7250c (patch) | |
tree | 30d24afcba54154352f78aee48cb5cc058b3d3ce | |
parent | 2696f495bdc046d84da6c909a1e7f535138a2a62 (diff) |
[media] c8sectpfe: fix pinctrl dependencies
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>
-rw-r--r-- | drivers/media/platform/sti/c8sectpfe/Kconfig | 3 | ||||
-rw-r--r-- | drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/platform/sti/c8sectpfe/Kconfig b/drivers/media/platform/sti/c8sectpfe/Kconfig index a7227d2ab6cc..1b1110d7374f 100644 --- a/drivers/media/platform/sti/c8sectpfe/Kconfig +++ b/drivers/media/platform/sti/c8sectpfe/Kconfig | |||
@@ -1,6 +1,7 @@ | |||
1 | config DVB_C8SECTPFE | 1 | config DVB_C8SECTPFE |
2 | tristate "STMicroelectronics C8SECTPFE DVB support" | 2 | tristate "STMicroelectronics C8SECTPFE DVB support" |
3 | depends on DVB_CORE && I2C && (ARCH_STI || ARCH_MULTIPLATFORM || COMPILE_TEST) | 3 | depends on PINCTRL && DVB_CORE && I2C |
4 | depends on ARCH_STI || ARCH_MULTIPLATFORM || COMPILE_TEST | ||
4 | select LIBELF_32 | 5 | select LIBELF_32 |
5 | select FW_LOADER | 6 | select FW_LOADER |
6 | select FW_LOADER_USER_HELPER_FALLBACK | 7 | select FW_LOADER_USER_HELPER_FALLBACK |
diff --git a/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c b/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c index 955d8daf055f..1586a1e6836d 100644 --- a/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c +++ b/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include <linux/time.h> | 33 | #include <linux/time.h> |
34 | #include <linux/version.h> | 34 | #include <linux/version.h> |
35 | #include <linux/wait.h> | 35 | #include <linux/wait.h> |
36 | #include <linux/pinctrl/pinctrl.h> | ||
36 | 37 | ||
37 | #include "c8sectpfe-core.h" | 38 | #include "c8sectpfe-core.h" |
38 | #include "c8sectpfe-common.h" | 39 | #include "c8sectpfe-common.h" |