Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1305536
| From | kbuild test robot <lkp@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] fix platform_no_drv_owner.cocci warnings |
| Date | 2016-01-10 11:40 +0100 |
| Message-ID | <qPlzJ-2US-31@gated-at.bofh.it> (permalink) |
| References | <qPlzI-2US-9@gated-at.bofh.it> <qPkki-2bU-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
drivers/i2c/busses/imanager-i2c.c:228: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: Richard Vidal-Dorsch <richard.dorsch@gmail.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
imanager-i2c.c | 1 -
1 file changed, 1 deletion(-)
--- a/drivers/i2c/busses/imanager-i2c.c
+++ b/drivers/i2c/busses/imanager-i2c.c
@@ -225,7 +225,6 @@ static int imanager_i2c_remove(struct pl
static struct platform_driver imanager_i2c_driver = {
.driver = {
- .owner = THIS_MODULE,
.name = "imanager_i2c",
},
.probe = imanager_i2c_probe,
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v2 4/6] Add Advantech iManager I2C driver richard.dorsch@gmail.com - 2016-01-10 10:20 +0100 [PATCH] fix platform_no_drv_owner.cocci warnings kbuild test robot <lkp@intel.com> - 2016-01-10 11:40 +0100
csiph-web