From: Arnaud Mouiche Date: Tue, 3 May 2016 12:13:57 +0000 (+0200) Subject: ASoC: fsl_ssi: Save a dev reference for dev_err() purpose. X-Git-Tag: v4.7-rc1~11^2~7^2~1^6~3 X-Git-Url: http://git.cascardo.info/?a=commitdiff_plain;h=0096b693962d3abde4f41b13cf03c765f33e9d8d;p=cascardo%2Flinux.git ASoC: fsl_ssi: Save a dev reference for dev_err() purpose. Most of functions only receive the ssi_private reference and don't have a knowledge of 'dev' pointer, even for debug purpose. Signed-off-by: Arnaud Mouiche Tested-by: Caleb Crome Signed-off-by: Mark Brown --- diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index 86229c8902d2..149df3ca4f5e 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c @@ -261,6 +261,7 @@ struct fsl_ssi_private { struct fsl_ssi_dbg dbg_stats; const struct fsl_ssi_soc_data *soc; + struct device *dev; }; /* @@ -1404,6 +1405,7 @@ static int fsl_ssi_probe(struct platform_device *pdev) } ssi_private->soc = of_id->data; + ssi_private->dev = &pdev->dev; sprop = of_get_property(np, "fsl,mode", NULL); if (sprop) {