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: 138517 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1646450lji; Wed, 13 Jun 2018 22:23:50 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL+JNZ9hb9R/Du+y6uB/feMfa04iAd9fdajnLP+OXvrPAfwOikYDEiiNk5lDQxw3a00x2QS X-Received: by 2002:a65:41c6:: with SMTP id b6-v6mr999207pgq.372.1528953830723; Wed, 13 Jun 2018 22:23:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528953830; cv=none; d=google.com; s=arc-20160816; b=dCpLs6eewyXwmLP/7JQhIgz+jJDHQx8eqSkDlhMYheaRAjgw91nPgORnVudhozuSPU TsJCj29J3BWRlwWQEy9YPVqaW24Oc2M15lP1EXB0vTPEw1Dw71PiNBxN1IDaSHvrGKwI EF7+QueYDidVDt5S/0ewtSe0WzrFEQFa4arGYrVjTiVmU4RdDp0jdOaUhbuQ+FAKUzJ3 3zOkw3RMG+2UpinGOUaDphCACr6ACLf6yrdW1XXzOqtvdw96/ZbXA/NUvc6u2TWjfQou tG8HVxJ1cXzZq98wru0a7Yj0ogaa/f02PTG0Ak/inPeIlQKeKMQbhrN7nY5RkXKKYz1j KJuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=ow4kgHJRH3Epm9EoRn5M/2VWmBNQRdnsiOvwaNtwhjk=; b=y1h8OHMZSH3OJH1fZ+YtY0Gt6IAg5rjufz/ROXKHbrDpTG10jSUQ1P9n4Z7L7Zs45r iA/HnME3qwazqPRXnU4Y+zTCrvM/zl+qFtUpLahQ+Nzgz88Ro4YOvaRiuVk80+Ck8KvH //d8yZi7JVAy+e3k/iHbnUFACrtcTCAU30uWE4RxktAl5QZqHo+d4M59iVqzWIzQ39De Z7WQMtlbAkhLC9Otcl+dRs1WkAk9N9kWmQPD6BnkpzjmjGcbOEAqn9a2Az6ODfSlVt3Y XOXkwCCAaqZYelrpdHSsg/ZdQiUqQt5XBBAB5MzCT/cE3Ra6lzW1bEm6KUDJmF1jPdlk Rd2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NtxktNH5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y20-v6si4659269plp.267.2018.06.13.22.23.50; Wed, 13 Jun 2018 22:23:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NtxktNH5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752747AbeFNFXr (ORCPT + 30 others); Thu, 14 Jun 2018 01:23:47 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:37971 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751455AbeFNFXo (ORCPT ); Thu, 14 Jun 2018 01:23:44 -0400 Received: by mail-pf0-f196.google.com with SMTP id b74-v6so2610028pfl.5 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=lfYchGn1b/XF4Sb6RNp2FCz0p4JcqUpYoFVALH577QEmvLBDtjALMZVSAP7zjQk8ct tvIYkxk+pq73JmsrwwRZHwMoexlG4JK2tERn7Q+fsq6TrTlN9I7IJnnDm9aRC/HflgxV 7bn2+tcjtNZhphuqK3X1WroD6hzq5u5ipATSl+EyUj+cRYdnxaeTagjECWO0rmhevHSI SH/UvWtqSnYaPyXFiKcF4BhjNpcZtE8LAwFyLRIQ1IWnalgf9shrKjcjRiYWW+A20U93 PIij0zQxWHO/X3lWc34438ZnevQxE9Pw83M58GN79NFYjJz3Eftv9YbQN2mLow8Co4ZI pWag== X-Gm-Message-State: APt69E1rUevsMT69OaBhvSq9oxRhdgmf6YN26HSHyXYNn8wU5JUVqyB9 JaIdYz8HLrfwXMFfcnpglO0DDw== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- include/linux/pm_domain.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.18.0.rc1.242.g61856ae69a2c Acked-by: Ulf Hansson 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)