Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea075615 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

ASoC: cs42l73: Return proper error code if device id mismatch



Return -ENODEV instead of 0 if device id mismatch.

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 6413d542
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1369,6 +1369,7 @@ static __devinit int cs42l73_i2c_probe(struct i2c_client *i2c_client,


	if (devid != CS42L73_DEVID) {
		ret = -ENODEV;
		dev_err(&i2c_client->dev,
			"CS42L73 Device ID (%X). Expected %X\n",
			devid, CS42L73_DEVID);