[PATCH] btwilink: fix platform_no_drv_owner.cocci warnings

kbuild test robot fengguang.wu at intel.com
Wed Feb 15 08:53:14 PST 2017


drivers/bluetooth/btwilink.c:350: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: Eyal Reizer <eyalr at ti.com>
Signed-off-by: Fengguang Wu <fengguang.wu at intel.com>
---

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

--- a/drivers/bluetooth/btwilink.c
+++ b/drivers/bluetooth/btwilink.c
@@ -347,7 +347,6 @@ static struct platform_driver btwilink_d
 	.remove = bt_ti_remove,
 	.driver = {
 		.name = "btwilink",
-		.owner = THIS_MODULE,
 		.of_match_table = of_match_ptr(btwilink_of_match),
 	},
 };



More information about the linux-arm-kernel mailing list