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

From: Julia Lawall
Date: Thu Feb 09 2012 - 13:45:45 EST


On Thu, 9 Feb 2012, Dong Aisheng-B29396 wrote:

-----Original Message-----
From: Julia Lawall [mailto:Julia.Lawall@xxxxxxx]
Sent: Wednesday, February 08, 2012 9:14 AM
To: Liam Girdwood
Cc: kernel-janitors@xxxxxxxxxxxxxxx; Mark Brown; Jaroslav Kysela; Takashi Iwai;
alsa-devel@xxxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; Dong Aisheng-B29396
Subject: [PATCH] sound/soc/mxs/mxs-saif.c: use devm_ functions
Importance: High

From: Julia Lawall <Julia.Lawall@xxxxxxx>

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@xxxxxxx>

---
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?

OK.

julia
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/