From mboxrd@z Thu Jan 1 00:00:00 1970 From: Liam Girdwood Subject: Re: [alsa-devel] [PATCH] ad193x: move codec register/unregister to bus probe/remove Date: Mon, 29 Mar 2010 14:40:01 +0100 Message-ID: <1269870001.3750.73.camel@odin> References: <1269832560-6845-1-git-send-email-21cnbao@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1269832560-6845-1-git-send-email-21cnbao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: uclinux-dist-devel-bounces-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@public.gmane.org Errors-To: uclinux-dist-devel-bounces-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@public.gmane.org To: Barry Song <21cnbao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Cc: uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@public.gmane.org, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org, broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org List-Id: alsa-devel@alsa-project.org On Mon, 2010-03-29 at 11:16 +0800, Barry Song wrote: > The way i've factored out the bus probe and removal functions so > that there's no code in the individual I2C and SPI functions means > that the register() and unregister() functions could just be squashed > into the bus_probe() and bus_remove() functions. > > Signed-off-by: Barry Song <21cnbao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > --- Acked-by: Liam Girdwood Btw, the multi-codec branch does very similar refactoring and removes the need for the extra register/unregister too. Liam