ASoC: Add missing dev_set_drvdata in mpc8610_hpcd_probe
PATCH 1/2 ASoC: Add missing dev_set_drvdata in mpc8610_hpcd_probe
Otherwise, calling dev_get_drvdata in mpc8610_hpcd_remove returns NULL.
Signed-off-by Axel Lin <[email protected]>
--- sound/soc/fsl/mpc8610_hpcd.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
sound/soc/fsl/mpc8610_hpcd.c +1 -0
@@ -498,6 +498,7 @@ static int mpc8610_hpcd_probe(struct platform_device *pdev)dev_err (&pdev->dev,"platform device add failed\n" ); goto error; } +dev_set_drvdata (&pdev->dev, sound_device);of_node_put (codec_np);
Signature · 1 line
1.7.2
PATCH 2/2 ASoC: Add missing dev_set_drvdata in p1022_ds_probe
Otherwise, calling dev_get_drvdata in p1022_ds_remove returns NULL.
Signed-off-by Axel Lin <[email protected]>
--- sound/soc/fsl/p1022_ds.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
sound/soc/fsl/p1022_ds.c +1 -0
@@ -498,6 +498,7 @@ static int p1022_ds_probe(struct platform_device *pdev)dev_err (&pdev->dev,"platform device add failed\n" ); goto error; } +dev_set_drvdata (&pdev->dev, sound_device);of_node_put (codec_np);
Signature · 1 line
1.7.2
Quoted 12 lines · Axel Lin
Otherwise, calling
dev_get_drvdatainmpc8610_hpcd_removereturns NULL.Signed-off-by Axel Lin <[email protected]>--- sound/soc/fsl/mpc8610_hpcd.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)sound/soc/fsl/mpc8610_hpcd.c +0
-0
sound/soc/fsl/mpc8610_hpcd.c static int mpc8610_hpcd_probe(struct platform_device *pdev) · line 504
Quoted 7 lines
sound/soc/fsl/mpc8610_hpcd.c +1
-0@@ -498,6 +498,7 @@ static int mpc8610_hpcd_probe(struct platform_device *pdev)dev_err (&pdev->dev,"platform device add failed\n" ); goto error; } +dev_set_drvdata (&pdev->dev, sound_device);of_node_put (codec_np);
All
Acked-by Liam Girdwood <[email protected]>
Signature · 3 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk
Quoted 3 lines · Axel Lin
Otherwise, calling
dev_get_drvdatainmpc8610_hpcd_removereturns NULL.Signed-off-by Axel Lin <[email protected]>
Both patches:
Acked-by Timur Tabi <[email protected]>
Thanks for catching this.
Signature · 2 lines
Timur Tabi Linux kernel developer at Freescale
Quoted 8 lines · Timur Tabi
Quoted 3 lines · Axel Lin
Otherwise, calling
dev_get_drvdatainmpc8610_hpcd_removereturns NULL.Signed-off-by Axel Lin <[email protected]>Both patches:
Acked-by Timur Tabi <[email protected]>
Applied now.