Skip to content

Commit 07fef36

Browse files
arndbdavem330
authored andcommitted
cpsw/netcp: cpts depends on posix_timers
With posix timers having become optional, we get a build error with the cpts time sync option of the CPSW driver: drivers/net/ethernet/ti/cpts.c: In function 'cpts_find_ts': drivers/net/ethernet/ti/cpts.c:291:23: error: implicit declaration of function 'ptp_classify_raw';did you mean 'ptp_classifier_init'? [-Werror=implicit-function-declaration] This adds a hard dependency on PTP_CLOCK to avoid the problem, as building it without PTP support makes no sense anyway. Fixes: baa73d9 ("posix-timers: Make them configurable") Cc: Nicolas Pitre <[email protected]> Cc: [email protected] Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Nicolas Pitre <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent be9ca0d commit 07fef36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/ti/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ config TI_CPSW
7676
config TI_CPTS
7777
bool "TI Common Platform Time Sync (CPTS) Support"
7878
depends on TI_CPSW || TI_KEYSTONE_NETCP
79-
imply PTP_1588_CLOCK
79+
depends on PTP_1588_CLOCK
8080
---help---
8181
This driver supports the Common Platform Time Sync unit of
8282
the CPSW Ethernet Switch and Keystone 2 1g/10g Switch Subsystem.

0 commit comments

Comments
 (0)