Re: [PATCH net-next v17 10/14] net: macb: Convert to netdev_ptp_clock_register

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 7/9/2024 6:53 AM, Kory Maincent wrote:
> The hardware registration clock for net device is now using
> netdev_ptp_clock_register to save the net_device pointer within the ptp
> clock xarray. Convert the macb driver to the new API.
> 
> Signed-off-by: Kory Maincent <kory.maincent@xxxxxxxxxxx>
> ---
> 
> Change in v8:
> - New patch
> ---
>  drivers/net/ethernet/cadence/macb_ptp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ethernet/cadence/macb_ptp.c b/drivers/net/ethernet/cadence/macb_ptp.c
> index a63bf29c4fa8..50fa62a0ddc5 100644
> --- a/drivers/net/ethernet/cadence/macb_ptp.c
> +++ b/drivers/net/ethernet/cadence/macb_ptp.c
> @@ -332,7 +332,7 @@ void gem_ptp_init(struct net_device *dev)
>  	bp->tsu_rate = bp->ptp_info->get_tsu_rate(bp);
>  	bp->ptp_clock_info.max_adj = bp->ptp_info->get_ptp_max_adj();
>  	gem_ptp_init_timer(bp);
> -	bp->ptp_clock = ptp_clock_register(&bp->ptp_clock_info, &dev->dev);
> +	bp->ptp_clock = netdev_ptp_clock_register(&bp->ptp_clock_info, dev);
>  	if (IS_ERR(bp->ptp_clock)) {
>  		pr_err("ptp clock register failed: %ld\n",
>  			PTR_ERR(bp->ptp_clock));
> 

Reviewed-by: Jacob Keller <jacob.e.keller@xxxxxxxxx>




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux