linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] power-z2_battery: Delete owner assignment
@ 2016-08-15  8:05 SF Markus Elfring
  2016-08-15 22:42 ` Sebastian Reichel
  0 siblings, 1 reply; 2+ messages in thread
From: SF Markus Elfring @ 2016-08-15  8:05 UTC (permalink / raw)
  To: linux-pm, David Woodhouse, Dmitry Eremin-Solenikov,
	Sebastian Reichel
  Cc: LKML, kernel-janitors, Julia Lawall

From: Markus Elfring <elfring@users.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@users.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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] power-z2_battery: Delete owner assignment
  2016-08-15  8:05 [PATCH] power-z2_battery: Delete owner assignment SF Markus Elfring
@ 2016-08-15 22:42 ` Sebastian Reichel
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Reichel @ 2016-08-15 22:42 UTC (permalink / raw)
  To: SF Markus Elfring
  Cc: linux-pm, David Woodhouse, Dmitry Eremin-Solenikov, LKML,
	kernel-janitors, Julia Lawall

[-- Attachment #1: Type: text/plain, Size: 496 bytes --]

Hi Markus,

On Mon, Aug 15, 2016 at 10:05:48AM +0200, SF Markus Elfring wrote:
> From: Markus Elfring <elfring@users.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@users.sourceforge.net>

I queued the patch from Wei Yongjun instead, who sent this a bit
faster than you.

-- Sebastian

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-15 22:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-15  8:05 [PATCH] power-z2_battery: Delete owner assignment SF Markus Elfring
2016-08-15 22:42 ` Sebastian Reichel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).