diff options
author | Arnaud Mouiche <arnaud.mouiche@invoxia.com> | 2016-05-03 14:13:57 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-05-13 12:15:31 +0100 |
commit | 0096b693962d3abde4f41b13cf03c765f33e9d8d (patch) | |
tree | 2f35781a3610f50a91a9072e3b382cbc744d8bbf /sound | |
parent | e09745f2e6a1f692fc63db01850aacf025475aad (diff) | |
download | linux-0096b693962d3abde4f41b13cf03c765f33e9d8d.tar.bz2 |
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 <arnaud.mouiche@invoxia.com>
Tested-by: Caleb Crome <caleb@crome.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/fsl/fsl_ssi.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |