Commit 0096b693 authored by Arnaud Mouiche's avatar Arnaud Mouiche Committed by Mark Brown

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: default avatarArnaud Mouiche <arnaud.mouiche@invoxia.com>
Tested-by: default avatarCaleb Crome <caleb@crome.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent e09745f2
...@@ -261,6 +261,7 @@ struct fsl_ssi_private { ...@@ -261,6 +261,7 @@ struct fsl_ssi_private {
struct fsl_ssi_dbg dbg_stats; struct fsl_ssi_dbg dbg_stats;
const struct fsl_ssi_soc_data *soc; const struct fsl_ssi_soc_data *soc;
struct device *dev;
}; };
/* /*
...@@ -1404,6 +1405,7 @@ static int fsl_ssi_probe(struct platform_device *pdev) ...@@ -1404,6 +1405,7 @@ static int fsl_ssi_probe(struct platform_device *pdev)
} }
ssi_private->soc = of_id->data; ssi_private->soc = of_id->data;
ssi_private->dev = &pdev->dev;
sprop = of_get_property(np, "fsl,mode", NULL); sprop = of_get_property(np, "fsl,mode", NULL);
if (sprop) { if (sprop) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment