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

Dan Carpenter dan.carpenter at oracle.com
Tue Nov 19 15:10:46 CET 2019


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



More information about the Alsa-devel mailing list