]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: ocp: add COMMON_CLK dependency
authorArnd Bergmann <arnd@arndb.de>
Mon, 20 Sep 2021 09:57:49 +0000 (11:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Sep 2021 10:11:54 +0000 (11:11 +0100)
commit6f27a9e320d71d922d3735af010a591c44a04d2a
tree97d16262f44916dbad9a630f24df5ea4e7c2a5f5
parent9a02c88de3d3340284680dc8ea7a0c34e54a75a7
ptp: ocp: add COMMON_CLK dependency

Without CONFIG_COMMON_CLK, this fails to link:

arm-linux-gnueabi-ld: drivers/ptp/ptp_ocp.o: in function `ptp_ocp_register_i2c':
ptp_ocp.c:(.text+0xcc0): undefined reference to `__clk_hw_register_fixed_rate'
arm-linux-gnueabi-ld: ptp_ocp.c:(.text+0xcf4): undefined reference to `devm_clk_hw_register_clkdev'
arm-linux-gnueabi-ld: drivers/ptp/ptp_ocp.o: in function `ptp_ocp_detach':
ptp_ocp.c:(.text+0x1c24): undefined reference to `clk_hw_unregister_fixed_rate'

Fixes: 522a6dc2376f ("ptp: Add clock driver for the OpenCompute TimeCard.")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/Kconfig