Skip to content

Commit 173d167

Browse files
arndbHans Verkuil
authored andcommitted
media: pci: mgb4: add COMMON_CLK dependency
This driver fails to build when HAVE_CLK and COMMON_CLK are disabled: x86_64-linux-ld: vmlinux.o: in function `mgb4_remove': mgb4_core.c:(.text+0x1915e8c): undefined reference to `clkdev_drop' x86_64-linux-ld: mgb4_core.c:(.text+0x1915e98): undefined reference to `clk_hw_unregister' Add a Kconfig dependency to enforce a clean build. Fixes: 0ab1367 ("media: pci: mgb4: Added Digiteq Automotive MGB4 driver") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Martin Tůma <martin.tuma@digiteqautomotive.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
1 parent 5d33213 commit 173d167

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/media/pci/mgb4/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
config VIDEO_MGB4
33
tristate "Digiteq Automotive MGB4 support"
44
depends on VIDEO_DEV && PCI && I2C && DMADEVICES && SPI && MTD && IIO
5+
depends on COMMON_CLK
56
select VIDEOBUF2_DMA_SG
67
select IIO_BUFFER
78
select IIO_TRIGGERED_BUFFER

0 commit comments

Comments
 (0)