ASoC: wcd9310: Fix NULL pointer dereference

If sound card is not yet initialized the platform device's private data
is not set either.  Check if private data is NULL before use it.

CRs-fixed: 400055
Change-Id: I861a1d09f4c57d85f4f280ece38d32ff35e36fc0
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
1 file changed