[alsa-devel] [PATCH] ASoC: rockchip: fix platform_no_drv_owner.cocci warnings

kbuild test robot fengguang.wu at intel.com
Tue Dec 25 05:38:26 CET 2018


From: kbuild test robot <fengguang.wu at intel.com>

sound/soc/codecs/rk3328_codec.c:508:6-11: 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

Fixes: dc1b33660692 ("ASoC: rockchip: support ACODEC for rk3328")
CC: Katsuhiro Suzuki <katsuhiro at katsuster.net>
Signed-off-by: kbuild test robot <fengguang.wu at intel.com>
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   6a1d293238c1774cef23c25b5188b0c134c29a34
commit: dc1b33660692441867a8ec5be147915dfa3bc8cb [11432/12209] ASoC: rockchip: support ACODEC for rk3328

 rk3328_codec.c |    1 -
 1 file changed, 1 deletion(-)

--- a/sound/soc/codecs/rk3328_codec.c
+++ b/sound/soc/codecs/rk3328_codec.c
@@ -505,7 +505,6 @@ MODULE_DEVICE_TABLE(of, rk3328_codec_of_
 static struct platform_driver rk3328_codec_driver = {
 	.driver = {
 		   .name = "rk3328-codec",
-		   .owner = THIS_MODULE,
 		   .of_match_table = of_match_ptr(rk3328_codec_of_match),
 	},
 	.probe = rk3328_platform_probe,


More information about the Alsa-devel mailing list