Skip to content

Commit

Permalink
PM / QoS: Fix the return value of dev_pm_qos_update_request()
Browse files Browse the repository at this point in the history
Commit e39473d (PM / QoS: Make it possible to expose PM QoS device
flags to user space) introduced __dev_pm_qos_update_request() to be
called internally by dev_pm_qos_update_request(), but forgot to make
the latter actually use the return value of the former.  Fix this
mistake.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Rafael J. Wysocki committed Oct 30, 2012
1 parent 8b713a8 commit f965287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/power/qos.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ int dev_pm_qos_update_request(struct dev_pm_qos_request *req, s32 new_value)
return -EINVAL;

mutex_lock(&dev_pm_qos_mtx);
__dev_pm_qos_update_request(req, new_value);
ret = __dev_pm_qos_update_request(req, new_value);
mutex_unlock(&dev_pm_qos_mtx);

return ret;
Expand Down

0 comments on commit f965287

Please sign in to comment.