aboutsummaryrefslogtreecommitdiff
path: root/sound/soc/sh/rcar
diff options
context:
space:
mode:
authorGravatar Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 2016-02-25 05:51:12 +0000
committerGravatar Mark Brown <broonie@kernel.org> 2016-03-05 13:27:27 +0900
commitd7289565483c65094d0473555625a4acd89567d3 (patch)
tree10e3b71207a38ceaa63cec90039dcf7d3e9732cb /sound/soc/sh/rcar
parentASoC: sh: rcar: rsrc-card: don't open code of_device_get_match_data() (diff)
downloadlinux-d7289565483c65094d0473555625a4acd89567d3.tar.gz
linux-d7289565483c65094d0473555625a4acd89567d3.tar.bz2
linux-d7289565483c65094d0473555625a4acd89567d3.zip
ASoC: rsnd: don't call update callback if it was NULL
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sh/rcar')
-rw-r--r--sound/soc/sh/rcar/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index ba37b0d55b21..3a3dc2ff18c9 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -927,7 +927,7 @@ static int rsnd_kctrl_put(struct snd_kcontrol *kctrl,
}
}
- if (change)
+ if (change && cfg->update)
cfg->update(cfg->io, mod);
return change;