From patchwork Fri Aug 5 17:06:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 73373 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp2038913qga; Fri, 5 Aug 2016 10:07:04 -0700 (PDT) X-Received: by 10.66.49.67 with SMTP id s3mr26351613pan.100.1470416824708; Fri, 05 Aug 2016 10:07:04 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f9si21250782pfa.18.2016.08.05.10.07.04; Fri, 05 Aug 2016 10:07:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753364AbcHERHD (ORCPT + 14 others); Fri, 5 Aug 2016 13:07:03 -0400 Received: from mail-pf0-f180.google.com ([209.85.192.180]:35961 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752141AbcHERHC (ORCPT ); Fri, 5 Aug 2016 13:07:02 -0400 Received: by mail-pf0-f180.google.com with SMTP id h186so98726835pfg.3 for ; Fri, 05 Aug 2016 10:07:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=peEsFjizK8Rf6Y5PoWvp+nbg9CXLevPJuRf72S8NHCc=; b=YWF7F4yZDmcapyvVxIkqsZGjgBcdIwZAzqtl69BMyewQfv4B0C9FT85Tac2x5pEDy7 aXCMiI9Xjlr4zK9DmBk6++foTXiQ27fZCEgs1WtGzUBlr7fzZ9bZ4DLfAYS3gHAsjb2a QfoDnie9Zo36bfTzPx7exPeNBmncKLRJ9Llm8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=peEsFjizK8Rf6Y5PoWvp+nbg9CXLevPJuRf72S8NHCc=; b=IQmCi6tYVT1hBb+opMJ138+EjiAQPnW2xtXFBdFBZs70B9rHXLYjnaUw12IHi/Yaan KKW7EF95ZZ09FITgprBr078KwgxXBm+lIkovPi7o1JD/8v2Cs4e0/AK6RJ8AI3MP0Duc VGCGxhDHX1hrbvFuIMc2M8TJ47HLSgXNJeVrsorrg0FS3Zyv2GqtOStbHz/qxftarknS UBq6Qqk1qbFEO2yGldSRv9QNfURsXQhnx+gGFy4PMdr7chTmxmHuDR05XTer+fZu348K UqZ1eRK4JJ0kohyrYGqVk9rVo+rwThCf6dtfU0PMBJzxWajH5Dr4diMOGosZGrVRUjGz qIlg== X-Gm-Message-State: AEkoout8ZCW+Qo1WI7j1GSRS177qmP3lY+OM80NyT37KBhTTMYTZ1xJwOd86j0j9tj5Vp6Te X-Received: by 10.98.129.5 with SMTP id t5mr136835351pfd.32.1470416820940; Fri, 05 Aug 2016 10:07:00 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id a5sm29330705pfc.89.2016.08.05.10.06.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Aug 2016 10:06:59 -0700 (PDT) From: Lina Iyer To: ulf.hansson@linaro.org, rjw@rjwysocki.net, linux-pm@vger.kernel.org Cc: Lina Iyer Subject: [PATCH] PM / Domains: Replace -ENOSYS with -ENODEV Date: Fri, 5 Aug 2016 11:06:56 -0600 Message-Id: <1470416816-53336-1-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org ENOSYS is for syscalls that are not supported. ENODEV is a better return value when the PM Domains are not available. Signed-off-by: Lina Iyer --- include/linux/pm_domain.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index 688dc57..8a63406 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -151,7 +151,7 @@ extern struct dev_power_governor pm_domain_always_on_gov; static inline struct generic_pm_domain_data *dev_gpd_data(struct device *dev) { - return ERR_PTR(-ENOSYS); + return ERR_PTR(-ENODEV); } static inline struct generic_pm_domain *pm_genpd_lookup_dev(struct device *dev) { @@ -161,27 +161,27 @@ static inline int __pm_genpd_add_device(struct generic_pm_domain *genpd, struct device *dev, struct gpd_timing_data *td) { - return -ENOSYS; + return -ENODEV; } static inline int pm_genpd_remove_device(struct generic_pm_domain *genpd, struct device *dev) { - return -ENOSYS; + return -ENODEV; } static inline int pm_genpd_add_subdomain(struct generic_pm_domain *genpd, struct generic_pm_domain *new_sd) { - return -ENOSYS; + return -ENODEV; } static inline int pm_genpd_remove_subdomain(struct generic_pm_domain *genpd, struct generic_pm_domain *target) { - return -ENOSYS; + return -ENODEV; } static inline int pm_genpd_init(struct generic_pm_domain *genpd, struct dev_power_governor *gov, bool is_off) { - return -ENOSYS; + return -ENODEV; } static inline int pm_genpd_of_parse_power_states( struct generic_pm_domain *genpd)