Re: [RESEND PATCH v9 6/6] ASoC: amd: Added ACP3x system resume and runtime pm

From: Dan Carpenter
Date: Tue Nov 19 2019 - 09:16:00 EST


On Tue, Nov 19, 2019 at 07:33:08PM +0530, vishnu wrote:
> > > >   static void snd_acp3x_remove(struct pci_dev *pci)
> > > >   {
> > > > -    struct acp3x_dev_data *adata = pci_get_drvdata(pci);
> > >
> > > This was fine.  Leave it as-is.
> > >
>
> Actually I was reported by kbuild robot tool about ISO mixed forbids of
> initialization so I did this.
>

You misunderstood the warning. It is about putting declarations after
the start of code. (Initializers don't count as code in this context).

regards,
dan carpenter