mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 07:34:06 +08:00
c16352b5b3
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>
22 lines
660 B
Plaintext
22 lines
660 B
Plaintext
config VIDEO_COBALT
|
|
tristate "Cisco Cobalt support"
|
|
depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API
|
|
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
|
|
select VIDEO_ADV7842
|
|
select VIDEOBUF2_DMA_SG
|
|
---help---
|
|
This is a video4linux driver for the Cisco PCIe Cobalt card.
|
|
|
|
This board is sadly not available outside of Cisco, but it is
|
|
very useful as an example of a real driver that uses all the
|
|
latest frameworks and APIs.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called cobalt.
|