mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
ASoC: fsl: imx-pcm-rpmsg: set debugfs_prefix via Component driver
We can set component->debugfs_prefix via component_driver->debugfs_prefix. Use it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://patch.msgid.link/87ik81k5w2.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
8fec6e5585
commit
23dff77e30
|
|
@ -632,6 +632,7 @@ static const struct snd_soc_component_driver imx_rpmsg_soc_component = {
|
|||
.pointer = imx_rpmsg_pcm_pointer,
|
||||
.ack = imx_rpmsg_pcm_ack,
|
||||
.prepare = imx_rpmsg_pcm_prepare,
|
||||
.debugfs_prefix = "rpmsg",
|
||||
};
|
||||
|
||||
static void imx_rpmsg_pcm_work(struct work_struct *work)
|
||||
|
|
@ -689,7 +690,6 @@ static void imx_rpmsg_pcm_work(struct work_struct *work)
|
|||
|
||||
static int imx_rpmsg_pcm_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_soc_component *component;
|
||||
struct rpmsg_info *info;
|
||||
int ret, i;
|
||||
|
||||
|
|
@ -741,16 +741,6 @@ static int imx_rpmsg_pcm_probe(struct platform_device *pdev)
|
|||
if (ret)
|
||||
goto fail;
|
||||
|
||||
component = snd_soc_lookup_component(&pdev->dev, NULL);
|
||||
if (!component) {
|
||||
ret = -EINVAL;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
component->debugfs_prefix = "rpmsg";
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
||||
fail:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user