diff options
author | Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> | 2023-11-21 16:53:06 +0100 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-11-23 12:02:49 +0100 |
commit | 8c1c66235e0354fbe8c2159656947fad048d374d (patch) | |
tree | 647e5256689579de09d656d7e947f372e030aca2 /drivers/net/ethernet/renesas/rcar_gen4_ptp.c | |
parent | be5f81d37f7971abbad8547624453a1d4f033457 (diff) | |
download | linux-stable-8c1c66235e0354fbe8c2159656947fad048d374d.tar.gz linux-stable-8c1c66235e0354fbe8c2159656947fad048d374d.tar.bz2 linux-stable-8c1c66235e0354fbe8c2159656947fad048d374d.zip |
net: ethernet: renesas: rcar_gen4_ptp: Break out to module
The Gen4 gPTP support will be shared between the existing Renesas
Ethernet Switch driver and the upcoming Renesas Ethernet-TSN driver. In
preparation for this break out the gPTP support to its own module.
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/ethernet/renesas/rcar_gen4_ptp.c')
-rw-r--r-- | drivers/net/ethernet/renesas/rcar_gen4_ptp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/ethernet/renesas/rcar_gen4_ptp.c b/drivers/net/ethernet/renesas/rcar_gen4_ptp.c index 9583894634ae..72e7fcc56693 100644 --- a/drivers/net/ethernet/renesas/rcar_gen4_ptp.c +++ b/drivers/net/ethernet/renesas/rcar_gen4_ptp.c @@ -176,6 +176,7 @@ int rcar_gen4_ptp_register(struct rcar_gen4_ptp_private *ptp_priv, return 0; } +EXPORT_SYMBOL_GPL(rcar_gen4_ptp_register); int rcar_gen4_ptp_unregister(struct rcar_gen4_ptp_private *ptp_priv) { @@ -183,6 +184,7 @@ int rcar_gen4_ptp_unregister(struct rcar_gen4_ptp_private *ptp_priv) return ptp_clock_unregister(ptp_priv->clock); } +EXPORT_SYMBOL_GPL(rcar_gen4_ptp_unregister); struct rcar_gen4_ptp_private *rcar_gen4_ptp_alloc(struct platform_device *pdev) { @@ -196,3 +198,8 @@ struct rcar_gen4_ptp_private *rcar_gen4_ptp_alloc(struct platform_device *pdev) return ptp; } +EXPORT_SYMBOL_GPL(rcar_gen4_ptp_alloc); + +MODULE_AUTHOR("Yoshihiro Shimoda"); +MODULE_DESCRIPTION("Renesas R-Car Gen4 gPTP driver"); +MODULE_LICENSE("GPL"); |