ASoC: rsnd: rsnd_ssi_run_mods() needs to care ssi_parent_mod
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 1 Nov 2017 07:16:58 +0000 (07:16 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2017 09:10:28 +0000 (10:10 +0100)
commit556787a174e6f77c7aec167af846f1297e3860f8
treee71430db51889db10a03f793cc9b80c709ef5fc5
parentf7ee900a4f2c76902ce368e93d34b7580cc7ff04
ASoC: rsnd: rsnd_ssi_run_mods() needs to care ssi_parent_mod

[ Upstream commit 21781e87881f9c420871b1d1f3f29d4cd7bffb10 ]

SSI parent mod might be NULL. ssi_parent_mod() needs to care
about it. Otherwise, it uses negative shift.
This patch fixes it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/sh/rcar/ssi.c