Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758874Ab2BJTUm (ORCPT ); Fri, 10 Feb 2012 14:20:42 -0500 Received: from mail-pw0-f46.google.com ([209.85.160.46]:45096 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753485Ab2BJTUl (ORCPT ); Fri, 10 Feb 2012 14:20:41 -0500 Date: Fri, 10 Feb 2012 11:20:36 -0800 From: Dong Aisheng To: Julia Lawall Cc: Liam Girdwood , kernel-janitors@vger.kernel.org, Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sound/soc/mxs/mxs-saif.c: use devm_ functions Message-ID: <20120210192036.GA2630@b29396-Latitude-E6410> References: <1328861821-3380-1-git-send-email-Julia.Lawall@lip6.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1328861821-3380-1-git-send-email-Julia.Lawall@lip6.fr> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 852 Lines: 25 On Fri, Feb 10, 2012 at 09:17:01AM +0100, Julia Lawall wrote: > From: Julia Lawall > > 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 > > --- > patch against > git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git from the > branch for-3.4 > It's ok now. Acked-by: Dong Aisheng Regards Dong Aisheng -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/