summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/cobalt
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-03-14 23:40:07 +0100
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-04-13 22:08:51 +0200
commitc16352b5b35d8f619028ebf855ce42c1f99649e6 (patch)
tree3e01a9619968816cb4a2e0b0de21fb325bf5fffd /drivers/media/pci/cobalt
parent[media] media: v4l2-compat-ioctl32: fix missing reserved field copy in put_v4... (diff)
downloadlinux-c16352b5b35d8f619028ebf855ce42c1f99649e6.tar.xz
linux-c16352b5b35d8f619028ebf855ce42c1f99649e6.zip
[media] cobalt: add MTD dependency
The cobalt driver fails to link when it is built-in and MTD is disabled or a loadable module: drivers/media/built-in.o: In function `cobalt_flash_probe': :(.text+0xb8b46): undefined reference to `mtd_device_parse_register' :(.text+0xb8b88): undefined reference to `do_map_probe' drivers/media/built-in.o: In function `cobalt_flash_remove': :(.text+0xb8bb4): undefined reference to `mtd_device_unregister' :(.text+0xb8bbe): undefined reference to `map_destroy' This adds a Kconfig dependency to ensure we can call the API. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/pci/cobalt')
-rw-r--r--drivers/media/pci/cobalt/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/pci/cobalt/Kconfig b/drivers/media/pci/cobalt/Kconfig
index a01f0cc745cc..70343829a125 100644
--- a/drivers/media/pci/cobalt/Kconfig
+++ b/drivers/media/pci/cobalt/Kconfig
@@ -4,6 +4,7 @@ config VIDEO_COBALT
depends on PCI_MSI && MTD_COMPLEX_MAPPINGS
depends on GPIOLIB || COMPILE_TEST
depends on SND
+ depends on MTD
select I2C_ALGOBIT
select VIDEO_ADV7604
select VIDEO_ADV7511