diff options
Diffstat (limited to 'drivers/hwmon/gl518sm.c')
-rw-r--r-- | drivers/hwmon/gl518sm.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/hwmon/gl518sm.c b/drivers/hwmon/gl518sm.c index 34d85b1e5539..63a2756c283a 100644 --- a/drivers/hwmon/gl518sm.c +++ b/drivers/hwmon/gl518sm.c | |||
@@ -492,11 +492,8 @@ static int gl518_detach_client(struct i2c_client *client) | |||
492 | 492 | ||
493 | hwmon_device_unregister(data->class_dev); | 493 | hwmon_device_unregister(data->class_dev); |
494 | 494 | ||
495 | if ((err = i2c_detach_client(client))) { | 495 | if ((err = i2c_detach_client(client))) |
496 | dev_err(&client->dev, "Client deregistration failed, " | ||
497 | "client not detached.\n"); | ||
498 | return err; | 496 | return err; |
499 | } | ||
500 | 497 | ||
501 | kfree(data); | 498 | kfree(data); |
502 | return 0; | 499 | return 0; |