]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
PM: Update function header for dev_pm_get_subsys_data()
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 29 Jan 2015 17:39:04 +0000 (18:39 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 3 Feb 2015 21:59:25 +0000 (22:59 +0100)
The commit "PM: Make dev_pm_get_subsys_data() always return 0 on success"
changed the return value from dev_pm_get_subsys_data(). Let's update the
comment in the function header to reflect this change as well.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/common.c

index b0f138806bbc4cb67bc782c075a9228acc500f12..a1ee51d43da13ec0f48ab6d6db79425c417b2c5a 100644 (file)
@@ -19,8 +19,8 @@
  * @dev: Device to handle.
  *
  * If power.subsys_data is NULL, point it to a new object, otherwise increment
- * its reference counter.  Return 1 if a new object has been created, otherwise
- * return 0 or error code.
+ * its reference counter.  Return 0 if new object has been created or refcount
+ * increased, otherwise negative error code.
  */
 int dev_pm_get_subsys_data(struct device *dev)
 {