diff options
author | Arnaud Mouiche <arnaud.mouiche@invoxia.com> | 2016-05-03 08:13:57 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-05-13 07:15:31 -0400 |
commit | 0096b693962d3abde4f41b13cf03c765f33e9d8d (patch) | |
tree | 2f35781a3610f50a91a9072e3b382cbc744d8bbf | |
parent | e09745f2e6a1f692fc63db01850aacf025475aad (diff) |
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>
-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 { | |||
261 | struct fsl_ssi_dbg dbg_stats; | 261 | struct fsl_ssi_dbg dbg_stats; |
262 | 262 | ||
263 | const struct fsl_ssi_soc_data *soc; | 263 | const struct fsl_ssi_soc_data *soc; |
264 | struct device *dev; | ||
264 | }; | 265 | }; |
265 | 266 | ||
266 | /* | 267 | /* |
@@ -1404,6 +1405,7 @@ static int fsl_ssi_probe(struct platform_device *pdev) | |||
1404 | } | 1405 | } |
1405 | 1406 | ||
1406 | ssi_private->soc = of_id->data; | 1407 | ssi_private->soc = of_id->data; |
1408 | ssi_private->dev = &pdev->dev; | ||
1407 | 1409 | ||
1408 | sprop = of_get_property(np, "fsl,mode", NULL); | 1410 | sprop = of_get_property(np, "fsl,mode", NULL); |
1409 | if (sprop) { | 1411 | if (sprop) { |