diff mbox

Input: fix platform_no_drv_owner.cocci warnings

Message ID 20160624214731.GA125355@roam
State Not Applicable
Headers show

Commit Message

kernel test robot June 24, 2016, 9:47 p.m. UTC
drivers/input/rmi4/rmi_smbus.c:448: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: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

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

--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

--- a/drivers/input/rmi4/rmi_smbus.c
+++ b/drivers/input/rmi4/rmi_smbus.c
@@ -445,7 +445,6 @@  MODULE_DEVICE_TABLE(i2c, rmi_id);
 
 static struct i2c_driver rmi_smb_driver = {
 	.driver = {
-		.owner	= THIS_MODULE,
 		.name	= "rmi4_smbus",
 		.pm	= &rmi_smb_pm,
 		.resume	= rmi_smb_resume,