> @@ -2302,6 +2305,7 @@ static int __maybe_unused ravb_resume(struct device 
> *dev)
>  {
>       struct net_device *ndev = dev_get_drvdata(dev);
>       struct ravb_private *priv = netdev_priv(ndev);
> +     struct platform_device *pdev = priv->pdev;

Minor nit: I'd save this line...

> +     if (priv->chip_id != RCAR_GEN2)
> +             ravb_ptp_init(ndev, pdev);

... and use ravb_ptp_init(ndev, priv->pdev); here.

But well, maybe just bike-shedding...

Attachment: signature.asc
Description: PGP signature

Reply via email to