aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/via686a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/via686a.c')
-rw-r--r--drivers/hwmon/via686a.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/hwmon/via686a.c b/drivers/hwmon/via686a.c
index cd3732c36671..d9251fb0b625 100644
--- a/drivers/hwmon/via686a.c
+++ b/drivers/hwmon/via686a.c
@@ -700,11 +700,8 @@ static int via686a_detach_client(struct i2c_client *client)
700 700
701 hwmon_device_unregister(data->class_dev); 701 hwmon_device_unregister(data->class_dev);
702 702
703 if ((err = i2c_detach_client(client))) { 703 if ((err = i2c_detach_client(client)))
704 dev_err(&client->dev,
705 "Client deregistration failed, client not detached.\n");
706 return err; 704 return err;
707 }
708 705
709 release_region(client->addr, VIA686A_EXTENT); 706 release_region(client->addr, VIA686A_EXTENT);
710 kfree(data); 707 kfree(data);