From patchwork Wed Nov 21 05:06:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 13021 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id ADCBB23EFB for ; Wed, 21 Nov 2012 05:12:30 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 4A628A181C4 for ; Wed, 21 Nov 2012 05:12:30 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so9365471iej.11 for ; Tue, 20 Nov 2012 21:12:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=Yv5SOLyEDIY6LCv/HT5z1q3GSmGHCko3hzTRwRunuMI=; b=jQsPIqVHnybRnhHNyKt1GWZ3nXBzMVFG9F9ytDRusyXuLx270PKq8f70jw1jJRqU4o SOH9xXgZzwIRrkCxc30BkEZ4CiffFz+AOxkAwERagxWi4yTMdWYSIhUkL+ihl2riTV8B K1ajQI3kSbELbEkhQrejPHtGuk5RfjP4tRXRK9LPVdXFlCwFy0qgA6FSXgXA21ATKwgO 5zIL1j6fIHQu9lwlhnf87MtzkKqolAya+0RRkbEvkwEyXc/zf+dnSm6TinFSMjEGNj0B j/XGrarT+rlxXIS2KOiXtSzsxqPHeUz1M34KEqVbwWEF3pyjhZdpR0eqHAYNDodxUyY1 eiNA== Received: by 10.43.125.133 with SMTP id gs5mr16310124icc.54.1353474750057; Tue, 20 Nov 2012 21:12:30 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp434191igt; Tue, 20 Nov 2012 21:12:29 -0800 (PST) Received: by 10.66.73.102 with SMTP id k6mr14608323pav.22.1353474749494; Tue, 20 Nov 2012 21:12:29 -0800 (PST) Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by mx.google.com with ESMTPS id sh10si21199132pbb.203.2012.11.20.21.12.29 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 20 Nov 2012 21:12:29 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.49 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.49; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.49 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-pb0-f49.google.com with SMTP id un15so5253979pbc.22 for ; Tue, 20 Nov 2012 21:12:29 -0800 (PST) Received: by 10.68.192.97 with SMTP id hf1mr49939812pbc.106.1353474749210; Tue, 20 Nov 2012 21:12:29 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id us7sm9265014pbc.40.2012.11.20.21.12.26 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 20 Nov 2012 21:12:28 -0800 (PST) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: myungjoo.ham@samsung.com, kyungmin.park@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 2/2] PM/devfreq: Fix return value in devfreq_remove_governor() Date: Wed, 21 Nov 2012 10:36:14 +0530 Message-Id: <1353474374-21591-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1353474374-21591-1-git-send-email-sachin.kamat@linaro.org> References: <1353474374-21591-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQmFdYHLzawSsdc7R/c4W0NEWpqJs0WwaPMkQNXz/mzm67eUk3zJVeSPgr+ojPuYMbh1KCds Use the value obtained from the function instead of -EINVAL. Signed-off-by: Sachin Kamat --- drivers/devfreq/devfreq.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index 83c2129..2bd9ab0 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c @@ -644,7 +644,7 @@ int devfreq_remove_governor(struct devfreq_governor *governor) if (IS_ERR(g)) { pr_err("%s: governor %s not registered\n", __func__, governor->name); - err = -EINVAL; + err = PTR_ERR(g); goto err_out; } list_for_each_entry(devfreq, &devfreq_list, node) {