Nicolas Cavallari
3c5064cd29
ASoC: fsl-asoc-card: Set .owner attribute when registering card.
...
[ Upstream commit a8437f05384cb472518ec21bf4fffbe8f0a47378 ]
Otherwise, when compiled as module, a WARN_ON is triggered:
WARNING: CPU: 0 PID: 5 at sound/core/init.c:208 snd_card_new+0x310/0x39c [snd]
[...]
CPU: 0 PID: 5 Comm: kworker/0:0 Not tainted 5.10.39 #1
Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
Workqueue: events deferred_probe_work_func
[<c0111988>] (unwind_backtrace) from [<c010c8ac>] (show_stack+0x10/0x14)
[<c010c8ac>] (show_stack) from [<c092784c>] (dump_stack+0xdc/0x104)
[<c092784c>] (dump_stack) from [<c0129710>] (__warn+0xd8/0x114)
[<c0129710>] (__warn) from [<c0922a48>] (warn_slowpath_fmt+0x5c/0xc4)
[<c0922a48>] (warn_slowpath_fmt) from [<bf0496f8>] (snd_card_new+0x310/0x39c [snd])
[<bf0496f8>] (snd_card_new [snd]) from [<bf1d7df8>] (snd_soc_bind_card+0x334/0x9c4 [snd_soc_core])
[<bf1d7df8>] (snd_soc_bind_card [snd_soc_core]) from [<bf1e9cd8>] (devm_snd_soc_register_card+0x30/0x6c [snd_soc_core])
[<bf1e9cd8>] (devm_snd_soc_register_card [snd_soc_core]) from [<bf22d964>] (fsl_asoc_card_probe+0x550/0xcc8 [snd_soc_fsl_asoc_card])
[<bf22d964>] (fsl_asoc_card_probe [snd_soc_fsl_asoc_card]) from [<c060c930>] (platform_drv_probe+0x48/0x98)
[...]
Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>
Link: https://lore.kernel.org/r/20210527163409.22049-1-nicolas.cavallari@green-communications.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-06-23 14:42:48 +02:00
..
2019-06-06 21:41:08 +01:00
2020-07-23 19:07:31 +01:00
2020-06-12 14:18:04 +01:00
2020-07-23 19:07:31 +01:00
2020-07-03 16:09:27 +01:00
2020-04-21 16:34:09 +01:00
2020-09-17 14:47:09 +01:00
2019-11-11 13:01:37 +00:00
2020-08-18 14:52:32 +01:00
2019-04-08 13:51:01 +07:00
2020-06-23 12:54:09 +01:00
2020-04-21 16:34:11 +01:00
2021-04-21 13:00:52 +02:00
2018-05-03 10:29:05 +09:00
2020-05-19 14:18:52 +01:00
2019-01-07 17:00:55 +00:00
2020-06-23 11:14:22 +01:00
2020-10-09 15:42:31 +01:00
2020-10-09 15:42:31 +01:00
2020-10-02 21:05:28 +01:00
2019-02-18 17:41:55 +00:00
2020-07-03 16:09:24 +01:00
2021-03-25 09:04:06 +01:00
2019-06-14 16:37:48 +01:00
2019-06-06 21:42:35 +01:00
2018-07-24 16:59:03 +01:00
2021-06-23 14:42:48 +02:00
2020-09-25 20:50:39 +01:00
2020-07-23 19:52:22 +01:00
2017-11-02 11:10:55 +01:00
2020-09-08 15:50:12 +01:00
2020-10-01 20:28:11 +01:00
2019-05-30 11:26:32 -07:00
2019-12-11 15:56:42 +00:00
2019-04-08 13:47:44 +07:00
2020-03-27 14:44:36 +00:00
2019-06-28 15:12:19 +01:00
2020-01-21 17:07:08 +00:00
2019-04-08 13:53:35 +07:00
2020-08-21 15:24:40 +01:00
2020-04-21 16:34:11 +01:00
2020-08-03 16:25:48 +01:00
2017-11-02 11:10:55 +01:00
2020-01-21 17:07:08 +00:00
2020-07-23 19:07:31 +01:00
2020-07-23 19:07:31 +01:00
2020-10-01 20:28:16 +01:00
2020-07-23 19:07:31 +01:00
2020-07-23 19:07:31 +01:00
2019-06-06 21:43:43 +01:00
2019-06-06 21:41:47 +01:00
2020-07-23 19:07:31 +01:00