ASoC: Samsung: i2s: Check whether other i2s_dai is NULL
authorInha Song <ideal.song@samsung.com>
Mon, 28 Jul 2014 06:27:01 +0000 (15:27 +0900)
committerChanho Park <chanho61.park@samsung.com>
Thu, 7 Aug 2014 06:17:56 +0000 (15:17 +0900)
commit81405104b217733dcc8a6699bd531e357106e1ca
tree5d68138fa2fb84f5c3c9366628d105e16438309c
parent3ff01cc91f23abe1d60cba2e8fda31d53e7443b8
ASoC: Samsung: i2s: Check whether other i2s_dai is NULL

If i2s don't have a secondary i2s dai, other i2s_dai is NULL.
So we need to check whether other i2s_dai is NULL before set
other->cdclk_out to i2s->cdclk_out in i2s_shutdown function.

Signed-off-by: Inha Song <ideal.song@samsung.com>
sound/soc/samsung/i2s.c