[alsa-devel] [PATCH] sound/soc/mxs/mxs-saif.c: use devm_ functions

Dong Aisheng-B29396 B29396 at freescale.com
Thu Feb 9 19:37:35 CET 2012


> -----Original Message-----
> From: linux-kernel-owner at vger.kernel.org [mailto:linux-kernel-
> owner at vger.kernel.org] On Behalf Of Dong Aisheng-B29396
> Sent: Thursday, February 09, 2012 10:35 AM
> To: Julia Lawall; Liam Girdwood
> Cc: kernel-janitors at vger.kernel.org; Mark Brown; Jaroslav Kysela; Takashi Iwai;
> alsa-devel at alsa-project.org; linux-kernel at vger.kernel.org
> Subject: RE: [PATCH] sound/soc/mxs/mxs-saif.c: use devm_ functions
> 
> > -----Original Message-----
> > From: Julia Lawall [mailto:Julia.Lawall at lip6.fr]
> > Sent: Wednesday, February 08, 2012 9:14 AM
> > To: Liam Girdwood
> > Cc: kernel-janitors at vger.kernel.org; Mark Brown; Jaroslav Kysela;
> > Takashi Iwai; alsa-devel at alsa-project.org;
> > linux-kernel at vger.kernel.org; Dong Aisheng-B29396
> > Subject: [PATCH] sound/soc/mxs/mxs-saif.c: use devm_ functions
> > Importance: High
> >
> > From: Julia Lawall <Julia.Lawall at lip6.fr>
> >
> > The various devm_ functions allocate memory that is released when a
> > driver detaches.  This patch uses these functions for data that is
> > allocated in the probe function of a platform device and is only freed in the
> remove function.
> >
> > Signed-off-by: Julia Lawall <Julia.Lawall at lip6.fr>
> >
> > ---
> > patch against
> > git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
> >
> I still failed to apply against for-3.4 branch.
> Can you switch to for-3.4 branch and then re-generate the patch based on it?
> 
Make sure update to the latest on for-3.4 branch for making the patch.

Regards
Dong Aisheng




More information about the Alsa-devel mailing list