Merge branch 'topic/ice1724-pm' into for-linus
[pandora-kernel.git] / drivers / hwmon / max6650.c
index 86142a8..58f66be 100644 (file)
@@ -418,6 +418,7 @@ static ssize_t set_div(struct device *dev, struct device_attribute *devattr,
                data->count = 3;
                break;
        default:
+               mutex_unlock(&data->update_lock);
                dev_err(&client->dev,
                        "illegal value for fan divider (%d)\n", div);
                return -EINVAL;