[PATCH] Input: fix platform_no_drv_owner.cocci warnings

From: kbuild test robot
Date: Fri Jun 24 2016 - 17:48:52 EST


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@xxxxxxxxxx>
Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
---

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

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