From patchwork Wed May 21 11:09:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 30522 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2E8E520671 for ; Wed, 21 May 2014 11:10:34 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id va2sf7802523obc.9 for ; Wed, 21 May 2014 04:10:33 -0700 (PDT) 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:in-reply-to:references:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=Uf6nN9alfDT7mVzdBDt2ETVOQPpHTnSBlFcqSQC4eS0=; b=kBQA5DValY/2ULA2cNsmQasTysCpl84HmpY6yBoMD2sBi2N7aoIMA913OBaDGrQviG +dh67zuMK2Kb6qKdfWSJqRUaZEyMwLvcJqrPKCHmTzxyl9WBmrRrNjBlibPDW982GIjd nUuAOIEtgtsAMwF9Wi2/xJ2rDkJkso1FpkJSlM/EN/tfCC+vtKPAFwJf2TLiQVgLfZ4N 3xHQVK6BUogbrEixq3tD+NdBoj15qkXgMHafiGxESzV7G5PgXNM9BtDjEzSRaSoLQrix Ja07DHH3WuU+tFguR6llbdDhFwj8NVNNzDNfrUo0vxNh8vFFbkZa1uG8fap/rTVT34WG uOCA== X-Gm-Message-State: ALoCoQmhDQWpG6CJrod+8inV6tBFQHtmbofAgALImT9FRsIqxx3cChUSuIvlz12sLcE01qbkcv/R X-Received: by 10.182.213.37 with SMTP id np5mr22608716obc.36.1400670633724; Wed, 21 May 2014 04:10:33 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.104.49 with SMTP id z46ls727703qge.50.gmail; Wed, 21 May 2014 04:10:33 -0700 (PDT) X-Received: by 10.58.47.36 with SMTP id a4mr17196ven.63.1400670633602; Wed, 21 May 2014 04:10:33 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id fd12si390116vec.17.2014.05.21.04.10.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 May 2014 04:10:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.170 as permitted sender) client-ip=209.85.128.170; Received: by mail-ve0-f170.google.com with SMTP id db11so2300608veb.1 for ; Wed, 21 May 2014 04:10:33 -0700 (PDT) X-Received: by 10.58.196.236 with SMTP id ip12mr34898vec.47.1400670633539; Wed, 21 May 2014 04:10:33 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp103783vcb; Wed, 21 May 2014 04:10:32 -0700 (PDT) X-Received: by 10.66.253.33 with SMTP id zx1mr58240789pac.28.1400670632549; Wed, 21 May 2014 04:10:32 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hm7si16776142pad.140.2014.05.21.04.10.32; Wed, 21 May 2014 04:10:32 -0700 (PDT) Received-SPF: none (google.com: linux-pm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751781AbaEULK2 (ORCPT + 12 others); Wed, 21 May 2014 07:10:28 -0400 Received: from mail-qg0-f47.google.com ([209.85.192.47]:40294 "EHLO mail-qg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751801AbaEULKZ (ORCPT ); Wed, 21 May 2014 07:10:25 -0400 Received: by mail-qg0-f47.google.com with SMTP id j107so2874938qga.20 for ; Wed, 21 May 2014 04:10:24 -0700 (PDT) X-Received: by 10.224.121.72 with SMTP id g8mr2558053qar.79.1400670624189; Wed, 21 May 2014 04:10:24 -0700 (PDT) Received: from localhost (ec2-23-23-178-99.compute-1.amazonaws.com. [23.23.178.99]) by mx.google.com with ESMTPSA id 19sm530072qgx.48.2014.05.21.04.10.18 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 21 May 2014 04:10:23 -0700 (PDT) From: Viresh Kumar To: rjw@rjwysocki.net Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, arvind.chauhan@arm.com, inderpal.s@samsung.com, nm@ti.com, chander.kashyap@linaro.org, pavel@ucw.cz, len.brown@intel.com, sudeep.holla@arm.com, Viresh Kumar Subject: [PATCH V2 1/7] opp: remove -ENOSYS from dummy implementation of of_init_opp_table() Date: Wed, 21 May 2014 16:39:59 +0530 Message-Id: X-Mailer: git-send-email 2.0.0.rc2 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@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.128.170 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , When any of CONFIG_PM_OPP or CONFIG_OF isn't enabled we have a dummy implementation of of_init_opp_table() routine, it returns -EINVAL currently. -EINVAL can be returned from other places within the real implementations of of_init_opp_table() and so caller wouldn't be able to differentiate between those two cases. Make it return -ENOSYS instead for better handling. Suggested-by: Sudeep Holla Signed-off-by: Viresh Kumar Reviewed-by: Sudeep Holla --- include/linux/pm_opp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/pm_opp.h b/include/linux/pm_opp.h index 0330217..6668150 100644 --- a/include/linux/pm_opp.h +++ b/include/linux/pm_opp.h @@ -112,7 +112,7 @@ int of_init_opp_table(struct device *dev); #else static inline int of_init_opp_table(struct device *dev) { - return -EINVAL; + return -ENOSYS; } #endif