[alsa-devel] [PATCH] ASoC: Return proper error if i2c_add_driver fails

Mark Brown broonie at opensource.wolfsonmicro.com
Tue Jan 10 19:53:40 CET 2012

On Tue, Jan 10, 2012 at 04:54:50PM +0800, Axel Lin wrote:

>  #endif
> -	return 0;
> +	return ret;

No, if we've got multiple bus types we do ignore the error in case one
of the buses failed (and if we were doing this then we'd need to clean
up the thing that successfully registered).   If we've not got multiple
bus types then the ifdefs shouldn't be there and we should just have a
trivial call to the registration function.

More information about the Alsa-devel mailing list