diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-09-20 11:57:49 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-09-20 12:11:54 +0200 |
commit | 42a99a0be307562c1bfef32bad8f89aa3c428edd (patch) | |
tree | 97d16262f44916dbad9a630f24df5ea4e7c2a5f5 /drivers/ptp | |
parent | bnxt_en: Fix TX timeout when TX ring size is set to the smallest (diff) | |
download | linux-42a99a0be307562c1bfef32bad8f89aa3c428edd.tar.xz linux-42a99a0be307562c1bfef32bad8f89aa3c428edd.zip |
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: a7e1abad13f3 ("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>
Diffstat (limited to 'drivers/ptp')
-rw-r--r-- | drivers/ptp/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ptp/Kconfig b/drivers/ptp/Kconfig index f02bedf41264..458218f88c5e 100644 --- a/drivers/ptp/Kconfig +++ b/drivers/ptp/Kconfig @@ -174,6 +174,7 @@ config PTP_1588_CLOCK_OCP depends on I2C && MTD depends on SERIAL_8250 depends on !S390 + depends on COMMON_CLK select NET_DEVLINK help This driver adds support for an OpenCompute time card. |