Re: [PATCH] clk: davinci: remove platform data struct
From: Bartosz Golaszewski
Date: Tue Dec 17 2024 - 12:41:13 EST
On Mon, Dec 16, 2024 at 9:29 PM David Lechner <david@xxxxxxxxxxxxxx> wrote:
>
> On 12/10/24 11:57 AM, Bartosz Golaszewski wrote:
> > From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
> >
> > There are no board files using struct davinci_pll_platform_data anymore.
> > The structure itself is currently used to store a single pointer. Let's
> > remove the struct definition, the header and rework the driver to not
> > require the syscon regmap to be stored in probe().
> >
> > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
> > ---
> >
> > - pdata = davinci_pll_get_pdata(dev);
> > - if (!pdata) {
> > - dev_err(dev, "missing platform data\n");
> > - return -EINVAL;
> > - }
> > + if (dev->of_node)
>
> Or just leave out the if here.
>
Right, that's not at all necessary.
Bart