Merge "lpm-workarounds: Prevent to enable clock_gating more than once"

This commit is contained in:
Linux Build Service Account 2015-08-28 03:02:17 -07:00 committed by Gerrit - the friendly Code Review server
commit 96df786b70
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ static ssize_t store_clock_gating_enabled(struct kobject *kobj,
int ret = 0, val = 0;
ret = kstrtoint(buf, 10, &val);
if (ret) {
if (ret || !enable_dynamic_clock_gating) {
pr_err("Invalid input%s %s. err:%d\n", __func__, buf, ret);
return count;
}