Skip to content

Commit 42a99a0

Browse files
arndbdavem330
authored andcommitted
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: a7e1aba ("ptp: Add clock driver for the OpenCompute TimeCard.") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 5bed8b0 commit 42a99a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/ptp/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ config PTP_1588_CLOCK_OCP
174174
depends on I2C && MTD
175175
depends on SERIAL_8250
176176
depends on !S390
177+
depends on COMMON_CLK
177178
select NET_DEVLINK
178179
help
179180
This driver adds support for an OpenCompute time card.

0 commit comments

Comments
 (0)