aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/ams/ams-i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/ams/ams-i2c.c')
-rw-r--r--drivers/hwmon/ams/ams-i2c.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/hwmon/ams/ams-i2c.c b/drivers/hwmon/ams/ams-i2c.c
index da26de01068e..2cbf8a6506c7 100644
--- a/drivers/hwmon/ams/ams-i2c.c
+++ b/drivers/hwmon/ams/ams-i2c.c
@@ -261,8 +261,6 @@ int __init ams_i2c_init(struct device_node *np)
261{ 261{
262 int result; 262 int result;
263 263
264 mutex_lock(&ams_info.lock);
265
266 /* Set implementation stuff */ 264 /* Set implementation stuff */
267 ams_info.of_node = np; 265 ams_info.of_node = np;
268 ams_info.exit = ams_i2c_exit; 266 ams_info.exit = ams_i2c_exit;
@@ -273,7 +271,5 @@ int __init ams_i2c_init(struct device_node *np)
273 271
274 result = i2c_add_driver(&ams_i2c_driver); 272 result = i2c_add_driver(&ams_i2c_driver);
275 273
276 mutex_unlock(&ams_info.lock);
277
278 return result; 274 return result;
279} 275}