From patchwork Wed Nov 19 10:17:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 41120 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f69.google.com (mail-ee0-f69.google.com [74.125.83.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CA03C20CBB for ; Wed, 19 Nov 2014 10:19:03 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id d49sf177076eek.0 for ; Wed, 19 Nov 2014 02:19:03 -0800 (PST) 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:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=3pbxGCg0KVB2smal3uzcL+A2VThO9DRmQjILmhIdGyA=; b=KA5nG9LZH1sLZZRh1U4ogTuxMcA7jByT89SRmuhuufynheKXV2aIiR3/8I4xRsOJgl napvifxdB0UEfDmrNTd712m3BF1vBohRSApEN9T/oVK5hQczo85oLYdIHRdxvHq0l5XK E+5uZCuT2newSKOb1/ktjAtN5YnCeCZb0n9NagCn4CsmeGQSuGHu+4juwGkDd2989ItS 2Yt9S6EW8bog4GgL/EuZtxHjENKT52je8fi9uXv3dYfvmpixwoubX4OT7ewewrWGYeN6 X0hMPCOHW5ti4XM2ylSvgOPkX+9DSWMopc2eQIq9Y8xWeGNme7EwDJ/VgcSYulOoruzz iZmQ== X-Gm-Message-State: ALoCoQkg4CsB6tcVTjGz8/wpYOOpGD+lc4EhLqVyktlJnVjuNWDKLOrS/dcR/tiIDlzBvUPpuC0e X-Received: by 10.112.163.229 with SMTP id yl5mr25986lbb.23.1416392343062; Wed, 19 Nov 2014 02:19:03 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.206.102 with SMTP id ln6ls410394lac.95.gmail; Wed, 19 Nov 2014 02:19:02 -0800 (PST) X-Received: by 10.112.139.196 with SMTP id ra4mr1022325lbb.95.1416392342761; Wed, 19 Nov 2014 02:19:02 -0800 (PST) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id li6si1289354lbc.87.2014.11.19.02.19.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Nov 2014 02:19:02 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by mail-la0-f48.google.com with SMTP id s18so227230lam.7 for ; Wed, 19 Nov 2014 02:19:02 -0800 (PST) X-Received: by 10.112.52.37 with SMTP id q5mr4472232lbo.32.1416392342318; Wed, 19 Nov 2014 02:19:02 -0800 (PST) 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.112.184.201 with SMTP id ew9csp57686lbc; Wed, 19 Nov 2014 02:19:01 -0800 (PST) X-Received: by 10.68.227.161 with SMTP id sb1mr44257508pbc.5.1416392339023; Wed, 19 Nov 2014 02:18:59 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bj6si1638137pdb.237.2014.11.19.02.18.57 for ; Wed, 19 Nov 2014 02:18:59 -0800 (PST) Received-SPF: none (google.com: linux-kernel-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 S1755877AbaKSKSH (ORCPT + 26 others); Wed, 19 Nov 2014 05:18:07 -0500 Received: from mail-wi0-f180.google.com ([209.85.212.180]:64278 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755848AbaKSKSE (ORCPT ); Wed, 19 Nov 2014 05:18:04 -0500 Received: by mail-wi0-f180.google.com with SMTP id n3so1265001wiv.13 for ; Wed, 19 Nov 2014 02:18:03 -0800 (PST) X-Received: by 10.195.17.231 with SMTP id gh7mr50251526wjd.21.1416392283621; Wed, 19 Nov 2014 02:18:03 -0800 (PST) Received: from localhost.localdomain (AToulouse-656-1-820-36.w109-215.abo.wanadoo.fr. [109.215.21.36]) by mx.google.com with ESMTPSA id ll2sm1643831wjb.11.2014.11.19.02.18.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Nov 2014 02:18:02 -0800 (PST) From: Daniel Lezcano To: rjw@rjwysocki.net Cc: Lorenzo.Pieralisi@arm.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/3] drivers: cpuidle: Remove cpuidle-arm64 duplicate error messages Date: Wed, 19 Nov 2014 11:17:58 +0100 Message-Id: <1416392278-18397-3-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1416392278-18397-1-git-send-email-daniel.lezcano@linaro.org> References: <546C6DEB.8060204@linaro.org> <1416392278-18397-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.lezcano@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.215.48 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: , From: Lorenzo Pieralisi Current CPUidle driver for arm64 machines spits errors upon idle state initialization and cpuidle driver registration failures. These error messages are already printed in core code so there is no need to print them again. This patch removes the duplicate print messages from the cpuidle-arm64 driver. Acked-by: Kevin Hilman Signed-off-by: Lorenzo Pieralisi Signed-off-by: Daniel Lezcano --- drivers/cpuidle/cpuidle-arm64.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/cpuidle/cpuidle-arm64.c b/drivers/cpuidle/cpuidle-arm64.c index 50997ea..1b10f92e 100644 --- a/drivers/cpuidle/cpuidle-arm64.c +++ b/drivers/cpuidle/cpuidle-arm64.c @@ -104,11 +104,8 @@ static int __init arm64_idle_init(void) * reason to initialize the idle driver if only wfi is supported. */ ret = dt_init_idle_driver(drv, arm64_idle_state_match, 1); - if (ret <= 0) { - if (ret) - pr_err("failed to initialize idle states\n"); + if (ret <= 0) return ret ? : -ENODEV; - } /* * Call arch CPU operations in order to initialize @@ -122,12 +119,6 @@ static int __init arm64_idle_init(void) } } - ret = cpuidle_register(drv, NULL); - if (ret) { - pr_err("failed to register cpuidle driver\n"); - return ret; - } - - return 0; + return cpuidle_register(drv, NULL); } device_initcall(arm64_idle_init);