aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/asb100.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/asb100.c')
-rw-r--r--drivers/hwmon/asb100.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/hwmon/asb100.c b/drivers/hwmon/asb100.c
index 290f7d2ac0a8..c6a2c94fad36 100644
--- a/drivers/hwmon/asb100.c
+++ b/drivers/hwmon/asb100.c
@@ -867,11 +867,8 @@ static int asb100_detach_client(struct i2c_client *client)
867 if (data) 867 if (data)
868 hwmon_device_unregister(data->class_dev); 868 hwmon_device_unregister(data->class_dev);
869 869
870 if ((err = i2c_detach_client(client))) { 870 if ((err = i2c_detach_client(client)))
871 dev_err(&client->dev, "client deregistration failed; "
872 "client not detached.\n");
873 return err; 871 return err;
874 }
875 872
876 /* main client */ 873 /* main client */
877 if (data) 874 if (data)