From 823544b0136ebb1ceb821ea4b2e30e4f4eedff1a Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Sat, 3 Mar 2012 00:10:02 +0000 Subject: [PATCH] --- yaml --- r: 305585 b: refs/heads/master c: 149c53b514d0a42abbb2c9611ffc9fa2d94857e8 h: refs/heads/master i: 305583: 9f51c219ac5140c74d9bbb8701eae94c1c4dcdf2 v: v3 --- [refs] | 2 +- trunk/sound/soc/codecs/wm8994.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index ba9a964051ac..1e68b156bf1f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 41b5b3bd5b7c9dd4ab4e0583d54d81b7f7d33d1f +refs/heads/master: 149c53b514d0a42abbb2c9611ffc9fa2d94857e8 diff --git a/trunk/sound/soc/codecs/wm8994.c b/trunk/sound/soc/codecs/wm8994.c index c9af13f14331..44f72dc27711 100644 --- a/trunk/sound/soc/codecs/wm8994.c +++ b/trunk/sound/soc/codecs/wm8994.c @@ -686,6 +686,9 @@ static void wm1811_jackdet_set_mode(struct snd_soc_codec *codec, u16 mode) { struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec); + if (!wm8994->jackdet || !wm8994->jack_cb) + return; + if (!wm8994->jackdet || !wm8994->jack_cb) return;