lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 27 Aug 2010 18:33:21 +0400
From:	Yuri Ershov <ext-yuri.ershov@...ia.com>
To:	eric.piel@...mplin-utc.net, samu.p.onkalo@...ia.com,
	akpm@...ux-foundation.org, daniel@...aq.de
Cc:	ext-yuri.kululin@...ia.com, lm-sensors@...sensors.org,
	linux-kernel@...r.kernel.org, ext-yuri.ershov@...ia.com
Subject: [PATCH 2/2] lis3: Set device owner

Set device owner for i2c part.

Signed-off-by: Yuri Kululin <ext-yuri.kululin@...ia.com>
---
 drivers/hwmon/lis3lv02d_i2c.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/hwmon/lis3lv02d_i2c.c b/drivers/hwmon/lis3lv02d_i2c.c
index b2f8bae..1a55bb3 100644
--- a/drivers/hwmon/lis3lv02d_i2c.c
+++ b/drivers/hwmon/lis3lv02d_i2c.c
@@ -129,6 +129,7 @@ static int __devinit lis3lv02d_i2c_probe(struct i2c_client *client,
 	lis3_dev.reg_ctrl = lis3_reg_ctrl;
 	lis3_dev.irq	  = client->irq;
 	lis3_dev.ac	  = lis3lv02d_axis_map;
+	lis3_dev.owner	  = THIS_MODULE;
 
 	i2c_set_clientdata(client, &lis3_dev);
 
@@ -149,6 +150,7 @@ static int __devexit lis3lv02d_i2c_remove(struct i2c_client *client)
 
 	lis3lv02d_joystick_disable();
 	lis3lv02d_remove_fs(&lis3_dev);
+	lis3_dev.owner = NULL;
 
 	regulator_bulk_free(ARRAY_SIZE(lis3_dev.regulators),
 			lis3_dev.regulators);
-- 
1.7.1.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ