diff mbox series

ASoC: rockchip: fix platform_no_drv_owner.cocci warnings

Message ID 20181225043826.GA158508@lkp-ib04.lkp.intel.com (mailing list archive)
State Accepted
Commit e1de3d237b5083fcd0da6fcf600848a4cef9cc67
Headers show
Series ASoC: rockchip: fix platform_no_drv_owner.cocci warnings | expand

Commit Message

Fengguang Wu Dec. 25, 2018, 4:38 a.m. UTC
From: kbuild test robot <fengguang.wu@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@katsuster.net>
Signed-off-by: kbuild test robot <fengguang.wu@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(-)
diff mbox series

Patch

--- 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,