diff options
author | Nicolas Boichat <drinkcat@chromium.org> | 2015-07-19 21:32:05 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-20 13:14:15 -0400 |
commit | f136dce45116027fec65c342fbcb5aaa900729c6 (patch) | |
tree | a95a17eee6841368c11f91dbb7f1d1e281adbb16 | |
parent | 2c23b0c10f64335031781cf78fd57aae072e9372 (diff) |
ASoC: rt5645: Remove return value in jack detect work
"ASoC: rt5645: Check if codec is initialized in workqueue handler"
adds a check if codec is NULL in rt5645_irq_detection, which
returns an int. However, "ASoC: rt5645: Remove irq_jack_detection
function" removes that function, and moves the code in
jack_detect_work, which returns void.
Remove the return value to fix compilation warning.
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/rt5645.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c index 19392b13bd5b..2ee42781cc52 100644 --- a/sound/soc/codecs/rt5645.c +++ b/sound/soc/codecs/rt5645.c | |||
@@ -2928,7 +2928,7 @@ static void rt5645_jack_detect_work(struct work_struct *work) | |||
2928 | int val, btn_type, gpio_state = 0, report = 0; | 2928 | int val, btn_type, gpio_state = 0, report = 0; |
2929 | 2929 | ||
2930 | if (!rt5645->codec) | 2930 | if (!rt5645->codec) |
2931 | return -EINVAL; | 2931 | return; |
2932 | 2932 | ||
2933 | switch (rt5645->pdata.jd_mode) { | 2933 | switch (rt5645->pdata.jd_mode) { |
2934 | case 0: /* Not using rt5645 JD */ | 2934 | case 0: /* Not using rt5645 JD */ |