Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336771
b: refs/heads/master
c: 12e2626
h: refs/heads/master
i:
  336769: 6afdbfb
  336767: 2bedc83
v: v3
  • Loading branch information
Nishanth Menon authored and Rafael J. Wysocki committed Nov 14, 2012
1 parent 75ba930 commit 26bf6f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c5b4a1c15da3e6f472c6ff1a085a1134d18a1464
refs/heads/master: 12e26265e6225bf93b2fdc70399774b31e2dd980
9 changes: 3 additions & 6 deletions trunk/drivers/devfreq/devfreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,12 +496,11 @@ static ssize_t store_polling_interval(struct device *dev,

ret = sscanf(buf, "%u", &value);
if (ret != 1)
goto out;
return -EINVAL;

df->governor->event_handler(df, DEVFREQ_GOV_INTERVAL, &value);
ret = count;

out:
return ret;
}

Expand All @@ -515,7 +514,7 @@ static ssize_t store_min_freq(struct device *dev, struct device_attribute *attr,

ret = sscanf(buf, "%lu", &value);
if (ret != 1)
goto out;
return -EINVAL;

mutex_lock(&df->lock);
max = df->max_freq;
Expand All @@ -529,7 +528,6 @@ static ssize_t store_min_freq(struct device *dev, struct device_attribute *attr,
ret = count;
unlock:
mutex_unlock(&df->lock);
out:
return ret;
}

Expand All @@ -549,7 +547,7 @@ static ssize_t store_max_freq(struct device *dev, struct device_attribute *attr,

ret = sscanf(buf, "%lu", &value);
if (ret != 1)
goto out;
return -EINVAL;

mutex_lock(&df->lock);
min = df->min_freq;
Expand All @@ -563,7 +561,6 @@ static ssize_t store_max_freq(struct device *dev, struct device_attribute *attr,
ret = count;
unlock:
mutex_unlock(&df->lock);
out:
return ret;
}

Expand Down

0 comments on commit 26bf6f3

Please sign in to comment.