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

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

ASoC: wm8995: Return -EINVAL if device ID mismatch

parent 275708f8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1642,6 +1642,7 @@ static int wm8995_probe(struct snd_soc_codec *codec)

	if (ret != 0x8995) {
		dev_err(codec->dev, "Invalid device ID: %#x\n", ret);
		ret = -EINVAL;
		goto err_reg_enable;
	}