Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1305531
| From | kbuild test robot <lkp@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] fix platform_no_drv_owner.cocci warnings |
| Date | 2016-01-10 11:30 +0100 |
| Message-ID | <qPlq2-2R1-5@gated-at.bofh.it> (permalink) |
| References | <qPlq2-2R1-3@gated-at.bofh.it> <qPkki-2bU-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
drivers/hwmon/imanager-hwmon.c:1047: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-hwmon.c | 1 -
1 file changed, 1 deletion(-)
--- a/drivers/hwmon/imanager-hwmon.c
+++ b/drivers/hwmon/imanager-hwmon.c
@@ -1044,7 +1044,6 @@ static int imanager_hwmon_probe(struct p
static struct platform_driver imanager_hwmon_driver = {
.driver = {
- .owner = THIS_MODULE,
.name = "imanager_hwmon",
},
.probe = imanager_hwmon_probe,
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] fix platform_no_drv_owner.cocci warnings kbuild test robot <lkp@intel.com> - 2016-01-10 11:30 +0100
csiph-web