From: Julia Lawall Subject: Re: [alsa-devel] [PATCH] ASoC: sgtl5000: Use devm_ functions Date: Wed, 9 Jul 2014 10:10:01 +0200 (CEST) Message-ID: References: <20140706070800.GA2927@himangi-Dell> <20140707144832.GL30458@sirena.org.uk> <20140708080232.GQ30458@sirena.org.uk> <20140708145249.GX30458@sirena.org.uk> <20140709080134.GE30458@sirena.org.uk> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: In-Reply-To: <20140709080134.GE30458@sirena.org.uk> Sender: linux-kernel-owner@vger.kernel.org To: Mark Brown Cc: Fabio Estevam , "alsa-devel@alsa-project.org" , Takashi Iwai , linux-kernel , Liam Girdwood , Himangi Saraogi List-Id: alsa-devel@alsa-project.org On Wed, 9 Jul 2014, Mark Brown wrote: > On Wed, Jul 09, 2014 at 07:30:40AM +0200, Julia Lawall wrote: > > On Tue, 8 Jul 2014, Mark Brown wrote: > > > > All devices do this - it's done as part of the driver model core code so > > > there is no need for individual buses to do anything. > > > How should one realize that this does not apply to the original file > > under discussion, sound/soc/codecs/sgtl5000.c? The associated structure > > is snd_soc_codec_driver. What code could one look for at the call sites > > of the probe and remove functions to know that managed memory can be used? > > That's not a device model driver; the way you should realise this is > that there's no device being registered on a bus which is matched by the > driver core. OK, thanks for the clarification. julia