projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d5c7a9
)
ASoC: fsl: pcm030-audio-fabric: use platform_device_unregsiter()
author
Yang Yingliang
<yangyingliang@huawei.com>
Mon, 4 Jul 2022 07:51:34 +0000
(15:51 +0800)
committer
Mark Brown
<broonie@kernel.org>
Mon, 4 Jul 2022 11:44:17 +0000
(12:44 +0100)
Replace platform_device_del/put() with platform_device_unregsiter()
to simplify code.
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link:
https://lore.kernel.org/r/20220704075134.26230-1-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/pcm030-audio-fabric.c
patch
|
blob
|
history
diff --git
a/sound/soc/fsl/pcm030-audio-fabric.c
b/sound/soc/fsl/pcm030-audio-fabric.c
index e4c805acc34970b05c5e0c7f39654a9c855dba02..997c3e66c636532589687412e26c6f61dd443d81 100644
(file)
--- a/
sound/soc/fsl/pcm030-audio-fabric.c
+++ b/
sound/soc/fsl/pcm030-audio-fabric.c
@@
-101,8
+101,7
@@
static int pcm030_fabric_probe(struct platform_device *op)
ret = snd_soc_register_card(card);
if (ret) {
dev_err(&op->dev, "snd_soc_register_card() failed: %d\n", ret);
- platform_device_del(pdata->codec_device);
- platform_device_put(pdata->codec_device);
+ platform_device_unregister(pdata->codec_device);
}
platform_set_drvdata(op, pdata);