Skip to content

Commit

Permalink
ASoC: rockchip_multicodecs: fix the bug of multicodecs-card driver
Browse files Browse the repository at this point in the history
The structure member owner is not set, which causes
the kernel to issue a warning. Set it up.

Signed-off-by: Feng Zhang <[email protected]>
  • Loading branch information
vamrs-feng committed Mar 3, 2023
1 parent 3a38746 commit f101107
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/soc/rockchip/rockchip_multicodecs.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,8 @@ static int rk_multicodecs_probe(struct platform_device *pdev)
card->controls = mc_controls;
card->num_controls = ARRAY_SIZE(mc_controls);
card->num_aux_devs = 0;

card->owner = THIS_MODULE;

count = of_count_phandle_with_args(np, "rockchip,codec", NULL);
if (count < 0)
return -EINVAL;
Expand Down

0 comments on commit f101107

Please sign in to comment.