From: Harshit Mogalapalli Date: Thu, 24 Aug 2023 19:17:10 +0000 (-0700) Subject: ASoC: codecs: Fix error code in aw88261_i2c_probe() X-Git-Tag: v6.6.17~3959^2^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8886e1b03669c498f7a24bc5e483f46db5e81f82;p=platform%2Fkernel%2Flinux-rpi.git ASoC: codecs: Fix error code in aw88261_i2c_probe() Passing zero to dev_err_probe is a success which is incorrect when i2c_check_functionality() fails. Fix this by passing -ENXIO instead of zero to dev_err_probe(). Fixes: 028a2ae25691 ("ASoC: codecs: Add aw88261 amplifier driver") Reported-by: kernel test robot adapter, I2C_FUNC_I2C); if (!ret) - return dev_err_probe(&i2c->dev, ret, "check_functionality failed"); + return dev_err_probe(&i2c->dev, -ENXIO, "check_functionality failed"); aw88261 = devm_kzalloc(&i2c->dev, sizeof(*aw88261), GFP_KERNEL); if (!aw88261)