net: ti: icssg-prueth: add PTP dependency
authorArnd Bergmann <arnd@arndb.de>
Tue, 12 Sep 2023 18:54:51 +0000 (20:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Sep 2023 09:36:11 +0000 (10:36 +0100)
commita8f367f7e131e76713b2949b168ac97f671fce7a
tree6a026f1bce18f303c525bdb57768b7fd40175a70
parentc326ca98446e0ae4fee43a40acf79412b74cfedb
net: ti: icssg-prueth: add PTP dependency

The driver can now use PTP if enabled but fails to link built-in
if PTP is a loadable module:

aarch64-linux-ld: drivers/net/ethernet/ti/icssg/icss_iep.o: in function `icss_iep_get_ptp_clock_idx':
icss_iep.c:(.text+0x200): undefined reference to `ptp_clock_index'

Add the usual dependency to avoid this.

Fixes: 186734c158865 ("net: ti: icssg-prueth: add packet timestamping and ptp support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: MD Danish Anwar <danishanwar@ti.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/Kconfig