summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mscc/ocelot_ptp.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-04-06 13:22:51 +0300
committerDavid S. Miller <davem@davemloft.net>2021-04-07 02:32:17 +0300
commita460513ed4b6994bfeb7bd86f72853140bc1ac12 (patch)
treec85178cb51f968494e0e5e182dc31cfc29c6c657 /drivers/net/ethernet/mscc/ocelot_ptp.c
parent3036ec035c4dc7e88439a61f5a714cc3988ab4cf (diff)
downloadlinux-a460513ed4b6994bfeb7bd86f72853140bc1ac12.tar.xz
time64.h: Consolidated PSEC_PER_SEC definition
We have currently three users of the PSEC_PER_SEC each of them defining it individually. Instead, move it to time64.h to be available for everyone. There is a new user coming with the same constant in use. It will also make its life easier. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mscc/ocelot_ptp.c')
-rw-r--r--drivers/net/ethernet/mscc/ocelot_ptp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mscc/ocelot_ptp.c b/drivers/net/ethernet/mscc/ocelot_ptp.c
index a33ab315cc6b..87ad2137ba06 100644
--- a/drivers/net/ethernet/mscc/ocelot_ptp.c
+++ b/drivers/net/ethernet/mscc/ocelot_ptp.c
@@ -4,6 +4,8 @@
* Copyright (c) 2017 Microsemi Corporation
* Copyright 2020 NXP
*/
+#include <linux/time64.h>
+
#include <soc/mscc/ocelot_ptp.h>
#include <soc/mscc/ocelot_sys.h>
#include <soc/mscc/ocelot.h>