projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfa76d4
)
ASoC: rsnd: set device data before snd_soc_register_platform/component
author
Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com>
Mon, 9 Feb 2015 08:05:22 +0000
(08:05 +0000)
committer
Mark Brown
<broonie@kernel.org>
Mon, 9 Feb 2015 08:24:31 +0000
(16:24 +0800)
Set device data before snd_soc_register_platform/component.
Otherwise, it will use NULL pointer if user calls unbind -> bind or
rmmod -> insmod
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/core.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/sh/rcar/core.c
b/sound/soc/sh/rcar/core.c
index 75308bbc2ce896e4a266ca0830cde8f5c020a225..fc227d3bc021b26f5962caa013b16ec5a2e21402 100644
(file)
--- a/
sound/soc/sh/rcar/core.c
+++ b/
sound/soc/sh/rcar/core.c
@@
-1268,6
+1268,8
@@
static int rsnd_probe(struct platform_device *pdev)
goto exit_snd_probe;
}
+ dev_set_drvdata(dev, priv);
+
/*
* asoc register
*/
@@
-1284,8
+1286,6
@@
static int rsnd_probe(struct platform_device *pdev)
goto exit_snd_soc;
}
- dev_set_drvdata(dev, priv);
-
pm_runtime_enable(dev);
dev_info(dev, "probed\n");