media: pci: mgb4: add COMMON_CLK dependency
authorArnd Bergmann <arnd@arndb.de>
Mon, 23 Oct 2023 16:05:31 +0000 (18:05 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 16 Nov 2023 12:59:31 +0000 (13:59 +0100)
commit173d167ce350961d7d689a4d59d66a5f2ad70a76
treeb0138cb21995d64871dc46f93f91878d526f4622
parent5d33213fac5929a2e7766c88d78779fd443b0fe8
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: 0ab13674a9bd ("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>
drivers/media/pci/mgb4/Kconfig