Skip to content

Commit

Permalink
ASoC: wm8940: Fix check on error code form snd_soc_codec_set_cache_io
Browse files Browse the repository at this point in the history
Fix for typo in commit 8d50e44
ASoC: Factor out I/O for Wolfson 8 bit data 16 bit register CODECs

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Jonathan Cameron authored and Mark Brown committed Oct 2, 2009
1 parent eaeae5d commit e655a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm8940.c
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ static int wm8940_register(struct wm8940_priv *wm8940,
codec->reg_cache = &wm8940->reg_cache;

ret = snd_soc_codec_set_cache_io(codec, 8, 16, control);
if (ret == 0) {
if (ret < 0) {
dev_err(codec->dev, "Failed to set cache I/O: %d\n", ret);
return ret;
}
Expand Down

0 comments on commit e655a43

Please sign in to comment.