From: Kuninori Morimoto Date: Tue, 15 Dec 2009 06:54:21 +0000 (+0900) Subject: ASoC: ak4642: Add default return value in ak4642_modinit X-Git-Tag: v2.6.33-rc2~42^2~1^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1cf86f6f9b000e98c1b7f866f99633ae67464e2f;p=karo-tx-linux.git ASoC: ak4642: Add default return value in ak4642_modinit If ak4642 driver was compiled without I2C configs, ak4642_modinit return value will become un-stable. This patch modify this bug Reported-by: Magnus Damm Signed-off-by: Kuninori Morimoto Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/ak4642.c b/sound/soc/codecs/ak4642.c index b69861d52161..3ef16bbc8c83 100644 --- a/sound/soc/codecs/ak4642.c +++ b/sound/soc/codecs/ak4642.c @@ -470,7 +470,7 @@ EXPORT_SYMBOL_GPL(soc_codec_dev_ak4642); static int __init ak4642_modinit(void) { - int ret; + int ret = 0; #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) ret = i2c_add_driver(&ak4642_i2c_driver); #endif