projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pps: simplify conditions a bit
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
hwmon
/
emc1403.c
diff --git
a/drivers/hwmon/emc1403.c
b/drivers/hwmon/emc1403.c
index 5b58b20dead1fa92b79af5c05036d45de8bf88ca..8dee3f38fdfb27e1c80a9fb36add60e414aeb805 100644
(file)
--- a/
drivers/hwmon/emc1403.c
+++ b/
drivers/hwmon/emc1403.c
@@
-308,7
+308,6
@@
static int emc1403_probe(struct i2c_client *client,
res = sysfs_create_group(&client->dev.kobj, &m_thermal_gr);
if (res) {
dev_warn(&client->dev, "create group failed\n");
- hwmon_device_unregister(data->hwmon_dev);
goto thermal_error1;
}
data->hwmon_dev = hwmon_device_register(&client->dev);