Skip to content

Commit f101107

Browse files
committed
ASoC: rockchip_multicodecs: fix the bug of multicodecs-card driver
The structure member owner is not set, which causes the kernel to issue a warning. Set it up. Signed-off-by: Feng Zhang <feng@radxa.com>
1 parent 3a38746 commit f101107

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sound/soc/rockchip/rockchip_multicodecs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,8 @@ static int rk_multicodecs_probe(struct platform_device *pdev)
629629
card->controls = mc_controls;
630630
card->num_controls = ARRAY_SIZE(mc_controls);
631631
card->num_aux_devs = 0;
632-
632+
card->owner = THIS_MODULE;
633+
633634
count = of_count_phandle_with_args(np, "rockchip,codec", NULL);
634635
if (count < 0)
635636
return -EINVAL;

0 commit comments

Comments
 (0)