[PATCH 3/9] can: rcar_canfd: Make clkp local
Biju Das
biju.das.jz at bp.renesas.com
Fri Nov 6 00:28:19 PST 2026
Hi Geert,
> -----Original Message-----
> From: Geert Uytterhoeven <geert at linux-m68k.org>
> Sent: 06 November 2026 08:21
> Subject: Re: [PATCH 3/9] can: rcar_canfd: Make clkp local
>
> Hi Biju,
>
> On Fri, 6 Nov 2026 at 09:17, Biju Das <biju.das.jz at bp.renesas.com> wrote:
> > > From: Geert Uytterhoeven <geert+renesas at glider.be>
> > > Sent: 29 October 2026 13:11
> > > Subject: [PATCH 3/9] can: rcar_canfd: Make clkp local
> > >
> > > The peripheral clock is only used in rcar_canfd_probe(), so convert clkp to a local variable.
> > >
> > > Signed-off-by: Geert Uytterhoeven <geert+renesas at glider.be>
>
> > > --- a/drivers/net/can/rcar/rcar_canfd.c
> > > +++ b/drivers/net/can/rcar/rcar_canfd.c
> > > @@ -467,7 +467,6 @@ struct rcar_canfd_global {
> > > void __iomem *base; /* Register base address */
> > > struct rcar_canfd_f_c __iomem *fcbase;
> > > struct platform_device *pdev; /* Respective platform device */
> > > - struct clk *clkp; /* Peripheral clock */
> >
> > Unless I am missing something, I get build error
> >
> > drivers/net/can/rcar/rcar_canfd.c: In function 'rcar_canfd_probe':
> > drivers/net/can/rcar/rcar_canfd.c:2250:55: error: 'struct rcar_canfd_global' has no member named
> 'clkp'
> > 2250 | fcan_freq = clk_get_rate(gpriv->clkp);
>
> If your tree has Claudiu's "[PATCH v4 3/7] can: rcar_canfd: Allow the CAN FD clock to be sourced from
> fck", you have to update the new user of gpriv->clkp.
That explains it.
Claudiu's patch added that change and it is not present in
https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git/log/
Cheers,
Biju
More information about the linux-arm-kernel
mailing list