diff options
Diffstat (limited to 'drivers/hwmon/fscpos.c')
-rw-r--r-- | drivers/hwmon/fscpos.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/hwmon/fscpos.c b/drivers/hwmon/fscpos.c index fd75e444e758..489870ad6056 100644 --- a/drivers/hwmon/fscpos.c +++ b/drivers/hwmon/fscpos.c | |||
@@ -549,11 +549,8 @@ static int fscpos_detach_client(struct i2c_client *client) | |||
549 | 549 | ||
550 | hwmon_device_unregister(data->class_dev); | 550 | hwmon_device_unregister(data->class_dev); |
551 | 551 | ||
552 | if ((err = i2c_detach_client(client))) { | 552 | if ((err = i2c_detach_client(client))) |
553 | dev_err(&client->dev, "Client deregistration failed, client" | ||
554 | " not detached.\n"); | ||
555 | return err; | 553 | return err; |
556 | } | ||
557 | kfree(data); | 554 | kfree(data); |
558 | return 0; | 555 | return 0; |
559 | } | 556 | } |