[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160825065030.GA56099@lkp-sb04.intel.com>
Date: Thu, 25 Aug 2016 14:50:30 +0800
From: kbuild test robot <lkp@...el.com>
To: vadimp@...lanox.com
Cc: kbuild-all@...org, wsa@...-dreams.de, linux-i2c@...r.kernel.org,
linux-kernel@...r.kernel.org, jiri@...nulli.us,
Vadim Pasternak <vadimp@...lanox.com>,
Michael Shych <michaelsh@...lanox.com>
Subject: [PATCH] i2c: mux: mellanox: fix platform_no_drv_owner.cocci warnings
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@...lanox.com>
Signed-off-by: Fengguang Wu <fengguang.wu@...el.com>
---
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,
Powered by blists - more mailing lists