From patchwork Thu Jun 14 05:23:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 10463289 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DF7B360348 for ; Thu, 14 Jun 2018 05:24:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC37A2885F for ; Thu, 14 Jun 2018 05:24:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BF78A28A07; Thu, 14 Jun 2018 05:24:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7EA342885F for ; Thu, 14 Jun 2018 05:24:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751493AbeFNFXp (ORCPT ); Thu, 14 Jun 2018 01:23:45 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:39335 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752654AbeFNFXo (ORCPT ); Thu, 14 Jun 2018 01:23:44 -0400 Received: by mail-pf0-f196.google.com with SMTP id r11-v6so2612605pfl.6 for ; Wed, 13 Jun 2018 22:23:43 -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:in-reply-to:references; bh=ow4kgHJRH3Epm9EoRn5M/2VWmBNQRdnsiOvwaNtwhjk=; b=NtxktNH5u7I/3HIKDix9yBicsNrKAETnO0j6ck4/Xp7s0sJw774sEj3EY1MCUBiYmA Gkn2JgXiowZPjws6RrrvyUgOvxco02mIfMoPJk2X72IdU3EcNbSFpBjtde9MILsH1308 95TKZn5gEkX11yLzvLSJeWuoi6fjc9oEuTwuY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ow4kgHJRH3Epm9EoRn5M/2VWmBNQRdnsiOvwaNtwhjk=; b=glkScqrt+85p4XaTPAEoy6GvY3mnylKN53HyK1zZmY4PIJcjhJ6eotg3wpTtXds+AK HodsRkPD8ARVL0Qj1clIKdYLRUbduCEM+GWxJoVwnF7vXrJXzBNeqdY7nkUPNFshl1pR HrdRPS2kQbjiaS4R2BlQdcu/W+0+1hmUA9IdnlBQPbnOJ+7TWA80W1KJw9hbbnG4rn2w teyIh1lk0Ij5jKB1UDeR+11THzq3aw7AygIWtxYPVlTL+J+6Wh2CL14/mAwbMz1k+atd n/IgDpobC4RyxLnLx6VYPmx02nH/TrOYLYR+hcSoTu2PLqIGm/A48hsSoAaBG5tCAP/d jL/Q== X-Gm-Message-State: APt69E13LiYty1CKYYziXqtQZR4ntQk/jxMaVs7dMQIhWMXyVDMfHXLE W16DGjjRaOW61DY/X7seeunAV7H4SwE= X-Google-Smtp-Source: ADUXVKIPa0I25j+Wuyt37zqnxYcDhZW68smrXskCd+7vHSrJazamc5Nb6beHR1+rw/tgzEjQ9535Bg== X-Received: by 2002:a63:8048:: with SMTP id j69-v6mr975916pgd.429.1528953823470; Wed, 13 Jun 2018 22:23:43 -0700 (PDT) Received: from localhost ([223.226.91.101]) by smtp.gmail.com with ESMTPSA id u1-v6sm5902641pfn.59.2018.06.13.22.23.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jun 2018 22:23:42 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Kevin Hilman , Ulf Hansson Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , Rajendra Nayak , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] PM / Domains: Fix return value of of_genpd_opp_to_performance_state() Date: Thu, 14 Jun 2018 10:53:34 +0530 Message-Id: <3d3687c030535189885d84c57dbffb034c4461c2.1528953706.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.18.0.rc1.242.g61856ae69a2c In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP of_genpd_opp_to_performance_state() should return 0 for errors, but the dummy routine isn't doing that. Fix it. Signed-off-by: Viresh Kumar Acked-by: Ulf Hansson --- include/linux/pm_domain.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index 9206a4fef9ac..139f79c8477a 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -276,7 +276,7 @@ static inline unsigned int of_genpd_opp_to_performance_state(struct device *dev, struct device_node *opp_node) { - return -ENODEV; + return 0; } static inline int genpd_dev_pm_attach(struct device *dev)