From patchwork Wed Oct 11 08:03:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 9999435 X-Patchwork-Delegate: geert@linux-m68k.org 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 792D0602BF for ; Wed, 11 Oct 2017 11:51:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CBAC283CF for ; Wed, 11 Oct 2017 11:51:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 61938289F0; Wed, 11 Oct 2017 11:51:27 +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=-6.9 required=2.0 tests=BAYES_00,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 13A06283CF for ; Wed, 11 Oct 2017 11:51:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756998AbdJKLub (ORCPT ); Wed, 11 Oct 2017 07:50:31 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:57476 "EHLO andre.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752069AbdJKLu3 (ORCPT ); Wed, 11 Oct 2017 07:50:29 -0400 Received: from ayla.of.borg ([84.195.106.246]) by andre.telenet-ops.be with bizsmtp id LBqU1w00B5JzmfG01BqUp5; Wed, 11 Oct 2017 13:50:28 +0200 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1e2FWu-0004e7-6y; Wed, 11 Oct 2017 13:50:28 +0200 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from ) id 1e2Bys-0003Dp-Oi; Wed, 11 Oct 2017 10:03:06 +0200 From: Geert Uytterhoeven To: Mark Rutland , Lorenzo Pieralisi Cc: linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 2/2] drivers: firmware: psci: checker: Use psci_is_available() Date: Wed, 11 Oct 2017 10:03:02 +0200 Message-Id: <1507708982-12336-3-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507708982-12336-1-git-send-email-geert+renesas@glider.be> References: <1507708982-12336-1-git-send-email-geert+renesas@glider.be> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use the psci_is_available() helper instead of direct accesses to psci_ops internals. Signed-off-by: Geert Uytterhoeven --- drivers/firmware/psci_checker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/psci_checker.c b/drivers/firmware/psci_checker.c index 6523ce9628659755..72b40ed2dcce7cf4 100644 --- a/drivers/firmware/psci_checker.c +++ b/drivers/firmware/psci_checker.c @@ -54,7 +54,7 @@ static int psci_ops_check(void) int migrate_type = -1; int cpu; - if (!(psci_ops.cpu_off && psci_ops.cpu_on && psci_ops.cpu_suspend)) { + if (!psci_is_available()) { pr_warn("Missing PSCI operations, aborting tests\n"); return -EOPNOTSUPP; }