[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <53c4710a-6e68-8eb2-b636-adaf9bccce2b@users.sourceforge.net>
Date: Mon, 15 Aug 2016 10:05:48 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: linux-pm@...r.kernel.org, David Woodhouse <dwmw2@...radead.org>,
Dmitry Eremin-Solenikov <dbaryshkov@...il.com>,
Sebastian Reichel <sre@...nel.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org,
Julia Lawall <julia.lawall@...6.fr>
Subject: [PATCH] power-z2_battery: Delete owner assignment
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Mon, 15 Aug 2016 10:00:03 +0200
The field "owner" is set by core. Thus delete an extra initialisation.
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
---
drivers/power/supply/z2_battery.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/power/supply/z2_battery.c b/drivers/power/supply/z2_battery.c
index b201e3f..8a43b49 100644
--- a/drivers/power/supply/z2_battery.c
+++ b/drivers/power/supply/z2_battery.c
@@ -317,7 +317,6 @@ MODULE_DEVICE_TABLE(i2c, z2_batt_id);
static struct i2c_driver z2_batt_driver = {
.driver = {
.name = "z2-battery",
- .owner = THIS_MODULE,
.pm = Z2_BATTERY_PM_OPS
},
.probe = z2_batt_probe,
--
2.9.2
Powered by blists - more mailing lists