From: Jie Yang Date: Tue, 28 Jul 2015 08:01:06 +0000 (+0800) Subject: ASoC: Intel: sst_byt: fix initialize 'NULL device *' issue X-Git-Tag: v4.14-rc1~4846^2~9^2^3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45f503df1ba445359b94e1758c5e4f2c3460c8e4;p=platform%2Fkernel%2Flinux-rpi.git ASoC: Intel: sst_byt: fix initialize 'NULL device *' issue Add initialization for sst_byt.dev at init stage, which fix the 'NULL device *' warning issues. Signed-off-by: Jie Yang Signed-off-by: Mark Brown --- diff --git a/sound/soc/intel/baytrail/sst-baytrail-ipc.c b/sound/soc/intel/baytrail/sst-baytrail-ipc.c index 4c01bb43928d..5bbaa667bec1 100644 --- a/sound/soc/intel/baytrail/sst-baytrail-ipc.c +++ b/sound/soc/intel/baytrail/sst-baytrail-ipc.c @@ -701,6 +701,8 @@ int sst_byt_dsp_init(struct device *dev, struct sst_pdata *pdata) if (byt == NULL) return -ENOMEM; + byt->dev = dev; + ipc = &byt->ipc; ipc->dev = dev; ipc->ops.tx_msg = byt_tx_msg;