Skip to content

Commit

Permalink
ASoC: samsung: fix platform_no_drv_owner.cocci warnings
Browse files Browse the repository at this point in the history
./sound/soc/samsung/midas_wm1811.c:534:3-8: No need to set .owner here. The core will do it.

 Remove .owner field if calls are used which set it automatically

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Signed-off-by: Zou Wei <zou_wei@huawei.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/1605529740-68757-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Zou Wei authored and Mark Brown committed Nov 18, 2020
1 parent b88b31f commit 45f366e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sound/soc/samsung/midas_wm1811.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,6 @@ static struct platform_driver midas_driver = {
.driver = {
.name = "midas-audio",
.of_match_table = midas_of_match,
.owner = THIS_MODULE,
.pm = &snd_soc_pm_ops,
},
.probe = midas_probe,
Expand Down

0 comments on commit 45f366e

Please sign in to comment.