From patchwork Thu Jan 29 17:39:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 43954 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F22462410D for ; Thu, 29 Jan 2015 17:39:14 +0000 (UTC) Received: by mail-wi0-f197.google.com with SMTP id n3sf14766247wiv.0 for ; Thu, 29 Jan 2015 09:39:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=+eDoZMx88pqxpfBoD6fl/vn7hO6FewOLZ2kYRRC36VA=; b=jgxztaoi0RQPzKGjdQddoudzCniwx74N2g6edYie9CuL5Ra/8sMfvBtx8pewyCg740 kjzKcBecV6aysFNNXbBSeN6JzEBcAUSZeankub1gyfH4MY1d938rV7fEOtHQP8ERmZOL Ng4tfrJuNWhNTtKd7OviuUgGNXk3otsXM6ZPHjXOXP+nwLRHPaeYLAvjMRz8SE2ou9cG Qk2m4imj1r93Ol7VKU4S5wpcp8kCcsT/Uvh5INuAqT+D5fnzz0WnvHNMWw7AdD8xSjK4 IUSTLSKe8sHfMZzo90493Dyf3WVtfboVFnfVJSuKGlbzjxhvEIxwirbBDDlOeODHQU4t fdSw== X-Gm-Message-State: ALoCoQm5dFabfl/27Rl2PUbF5tOpK7QG6GfgfRj39uYUM8lkHr1Qr5+lkPfpxTXlYmItqAEHio8g X-Received: by 10.180.88.66 with SMTP id be2mr198739wib.1.1422553154309; Thu, 29 Jan 2015 09:39:14 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.167 with SMTP id x7ls43942lal.61.gmail; Thu, 29 Jan 2015 09:39:14 -0800 (PST) X-Received: by 10.112.160.193 with SMTP id xm1mr2268308lbb.5.1422553154092; Thu, 29 Jan 2015 09:39:14 -0800 (PST) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id zm10si8004241lbb.137.2015.01.29.09.39.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 29 Jan 2015 09:39:14 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by mail-lb0-f174.google.com with SMTP id f15so30767215lbj.5 for ; Thu, 29 Jan 2015 09:39:14 -0800 (PST) X-Received: by 10.112.41.234 with SMTP id i10mr2263404lbl.25.1422553153979; Thu, 29 Jan 2015 09:39:13 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.35.133 with SMTP id h5csp21117lbj; Thu, 29 Jan 2015 09:39:13 -0800 (PST) X-Received: by 10.112.181.165 with SMTP id dx5mr2123567lbc.89.1422553153533; Thu, 29 Jan 2015 09:39:13 -0800 (PST) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id ww5si8097303lbb.22.2015.01.29.09.39.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 29 Jan 2015 09:39:13 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by mail-lb0-f174.google.com with SMTP id f15so30767116lbj.5 for ; Thu, 29 Jan 2015 09:39:13 -0800 (PST) X-Received: by 10.112.131.1 with SMTP id oi1mr2382113lbb.2.1422553153345; Thu, 29 Jan 2015 09:39:13 -0800 (PST) Received: from uffe-Latitude-E6430s.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id rv1sm2233164lbb.25.2015.01.29.09.39.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Jan 2015 09:39:12 -0800 (PST) From: Ulf Hansson To: "Rafael J. Wysocki" , Len Brown , Pavel Machek , linux-pm@vger.kernel.org Cc: Kevin Hilman , Geert Uytterhoeven , Ulf Hansson Subject: [PATCH 1/2] PM: Update function header for dev_pm_get_subsys_data() Date: Thu, 29 Jan 2015 18:39:04 +0100 Message-Id: <1422553145-14798-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- drivers/base/power/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/power/common.c b/drivers/base/power/common.c index b0f1388..a1ee51d 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) {