[PATCH] ASOC: sunxi: fix platform_no_drv_owner.cocci warnings

kbuild test robot lkp at intel.com
Wed Sep 30 11:26:34 PDT 2015


sound/soc/sunxi/sun4i-spdif.c:599: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

CC: Marcus Cooper <codekipper at gmail.com>
Signed-off-by: Fengguang Wu <fengguang.wu at intel.com>
---

 sun4i-spdif.c |    1 -
 1 file changed, 1 deletion(-)

--- a/sound/soc/sunxi/sun4i-spdif.c
+++ b/sound/soc/sunxi/sun4i-spdif.c
@@ -596,7 +596,6 @@ static int sun4i_spdif_remove(struct pla
 static struct platform_driver sun4i_spdif_driver = {
 	.driver		= {
 		.name	= "sun4i-spdif",
-		.owner	= THIS_MODULE,
 		.of_match_table = of_match_ptr(sun4i_spdif_of_match),
 	},
 	.probe		= sun4i_spdif_probe,



More information about the linux-arm-kernel mailing list