From: Ulf Hansson Date: Thu, 29 Jan 2015 17:39:04 +0000 (+0100) Subject: PM: Update function header for dev_pm_get_subsys_data() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=766bb53c015bcc28dbd5ceb7c004581af7ab51b2;p=linux-beck.git PM: Update function header for dev_pm_get_subsys_data() 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 Acked-by: Geert Uytterhoeven Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/base/power/common.c b/drivers/base/power/common.c index b0f138806bbc..a1ee51d43da1 100644 --- a/drivers/base/power/common.c +++ b/drivers/base/power/common.c @@ -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) {