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 <damm@opensource.se>
Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

authored by

Kuninori Morimoto and committed by
Mark Brown
1cf86f6f bc258006

+1 -1
+1 -1
sound/soc/codecs/ak4642.c
··· 470 470 471 471 static int __init ak4642_modinit(void) 472 472 { 473 - int ret; 473 + int ret = 0; 474 474 #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) 475 475 ret = i2c_add_driver(&ak4642_i2c_driver); 476 476 #endif