Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1463803
| From | SF Markus Elfring <elfring@users.sourceforge.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] hwmon-SCPI: Delete unnecessary assignment for the field "owner" |
| Date | 2016-08-16 15:40 +0200 |
| Message-ID | <s6ML1-3GS-57@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Tue, 16 Aug 2016 15:17:13 +0200
The field "owner" is set by the core.
Thus delete an unneeded initialisation.
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
drivers/hwmon/scpi-hwmon.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/hwmon/scpi-hwmon.c b/drivers/hwmon/scpi-hwmon.c
index 25b44e6..559a3dc 100644
--- a/drivers/hwmon/scpi-hwmon.c
+++ b/drivers/hwmon/scpi-hwmon.c
@@ -255,7 +255,6 @@ static const struct of_device_id scpi_of_match[] = {
static struct platform_driver scpi_hwmon_platdrv = {
.driver = {
.name = "scpi-hwmon",
- .owner = THIS_MODULE,
.of_match_table = scpi_of_match,
},
.probe = scpi_hwmon_probe,
--
2.9.2
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] hwmon-SCPI: Delete unnecessary assignment for the field "owner" SF Markus Elfring <elfring@users.sourceforge.net> - 2016-08-16 15:40 +0200 Re: [PATCH] hwmon-SCPI: Delete unnecessary assignment for the field "owner" Sudeep Holla <sudeep.holla@arm.com> - 2016-08-16 16:00 +0200 Re: [PATCH] hwmon-SCPI: Delete unnecessary assignment for the field "owner" Guenter Roeck <linux@roeck-us.net> - 2016-08-19 05:00 +0200
csiph-web