diff options
author | Xing Zheng <zhengxing@rock-chips.com> | 2015-08-25 09:52:42 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-08-26 13:13:19 +0200 |
commit | f8ce20005d1694584448cd544be5fb32416a277c (patch) | |
tree | 4174c6055a8baf722db895567fb5a3d881477b12 /sound | |
parent | ASoC: rockchip: i2s: Adjust devm usage (diff) | |
download | linux-f8ce20005d1694584448cd544be5fb32416a277c.tar.xz linux-f8ce20005d1694584448cd544be5fb32416a277c.zip |
ASoC: rockchip: fix a misjudgement by return
Being careless, judge the return value of snd_soc_card_jack_new
is opposite, so it should be fixed.
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/rockchip/rockchip_rt5645.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/rockchip/rockchip_rt5645.c b/sound/soc/rockchip/rockchip_rt5645.c index 3c6bb1ea06ec..adfe98c5d26f 100644 --- a/sound/soc/rockchip/rockchip_rt5645.c +++ b/sound/soc/rockchip/rockchip_rt5645.c @@ -118,7 +118,7 @@ static int rk_init(struct snd_soc_pcm_runtime *runtime) SND_JACK_BTN_0 | SND_JACK_BTN_1 | SND_JACK_BTN_2 | SND_JACK_BTN_3, &headset_jack, NULL, 0); - if (!ret) { + if (ret) { dev_err(card->dev, "New Headset Jack failed! (%d)\n", ret); return ret; } |