summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2012-10-30 20:00:30 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2012-10-30 20:00:30 +0100
commitf9652875dcd49d400b775aecc8e0bf76e405b70a (patch)
treed60cd35c7e186c328a3c9df47c8b837a9b78889c
parent8b713a88cc8b746f975958183fa641e9f1c8086d (diff)
PM / QoS: Fix the return value of dev_pm_qos_update_request()
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>
-rw-r--r--drivers/base/power/qos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/qos.c b/drivers/base/power/qos.c
index 167834dcc82..3a7687ae5a4 100644
--- a/drivers/base/power/qos.c
+++ b/drivers/base/power/qos.c
@@ -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;