[PATCH] i2c: mux: mellanox: fix platform_no_drv_owner.cocci warnings

From: kbuild test robot
Date: Thu Aug 25 2016 - 02:46:04 EST


drivers/i2c/muxes/i2c-mux-mlxcpld.c:329: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: Vadim Pasternak <vadimp@xxxxxxxxxxxx>
Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
---

i2c-mux-mlxcpld.c | 1 -
1 file changed, 1 deletion(-)

--- a/drivers/i2c/muxes/i2c-mux-mlxcpld.c
+++ b/drivers/i2c/muxes/i2c-mux-mlxcpld.c
@@ -326,7 +326,6 @@ static int mlxcpld_mux_remove(struct i2c
static struct i2c_driver mlxcpld_mux_driver = {
.driver = {
.name = "mlxcpld-mux",
- .owner = THIS_MODULE,
},
.probe = mlxcpld_mux_probe,
.remove = mlxcpld_mux_remove,