From patchwork Thu Oct 16 13:59:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Pieralisi X-Patchwork-Id: 38821 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CD07720973 for ; Thu, 16 Oct 2014 13:59:34 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id c13sf2083011eek.1 for ; Thu, 16 Oct 2014 06:59:34 -0700 (PDT) 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:content-type :content-transfer-encoding; bh=/sJO6xPgswgFdyrSA2r8HfkV3bagM8yKRkR7liz3Wwg=; b=AdosToKcePEn8fTw7cCljww9PzzvGMvu04uuy8iy8PsehBMuVL6X0JuYYGLwwM2Jc7 xxg/XBoh5KLClIimK7lWG4Gft3sq7GuvWS2jA8+wucVqsXGdMi1jJPTHAK1KdC82piOW /NKafn4d76C1zKhTloqzH4/QBKZg0KpbmeyhEYbH9AxXttOqCyVkWS2bnTRXH3CwmOws k9Pj2C2TmL2ImqVdFYPaU/h6kr1OIl4PBY0hVQZo6zNo+nrNpx8w+DlXDCGRaH7Jw60C q7oPzIQ2lmpty3xM+gTYmXOU2gFBWPcmkPRHAC+PYtuI8Lf+hrBcRTZgyMb5VVDGyKHG ijdA== X-Gm-Message-State: ALoCoQnRTgbCnIECdbcz5sfG7SR/qtCuzrnfx7WKLNvCf3lFMtI09RfS9/sfmL/wZgIPKAlyFYA+ X-Received: by 10.112.137.202 with SMTP id qk10mr297367lbb.11.1413467973926; Thu, 16 Oct 2014 06:59:33 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.166 with SMTP id t6ls178529lat.20.gmail; Thu, 16 Oct 2014 06:59:33 -0700 (PDT) X-Received: by 10.112.144.228 with SMTP id sp4mr1865784lbb.58.1413467973783; Thu, 16 Oct 2014 06:59:33 -0700 (PDT) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx.google.com with ESMTPS id pw1si35038825lbb.13.2014.10.16.06.59.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 Oct 2014 06:59:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by mail-lb0-f182.google.com with SMTP id z11so2885243lbi.13 for ; Thu, 16 Oct 2014 06:59:33 -0700 (PDT) X-Received: by 10.112.167.38 with SMTP id zl6mr1919055lbb.34.1413467973697; Thu, 16 Oct 2014 06:59:33 -0700 (PDT) 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.84.229 with SMTP id c5csp43985lbz; Thu, 16 Oct 2014 06:59:32 -0700 (PDT) X-Received: by 10.70.131.201 with SMTP id oo9mr1411994pdb.129.1413467970686; Thu, 16 Oct 2014 06:59:30 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fd3si12381915pad.74.2014.10.16.06.59.30 for ; Thu, 16 Oct 2014 06:59:30 -0700 (PDT) Received-SPF: none (google.com: linux-pm-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 S1752487AbaJPN71 (ORCPT + 15 others); Thu, 16 Oct 2014 09:59:27 -0400 Received: from service87.mimecast.com ([91.220.42.44]:42147 "EHLO service87.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752585AbaJPN71 (ORCPT ); Thu, 16 Oct 2014 09:59:27 -0400 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Thu, 16 Oct 2014 14:59:24 +0100 Received: from red-moon.cambridge.arm.com ([10.1.255.212]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 16 Oct 2014 14:59:20 +0100 From: Lorenzo Pieralisi To: linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Cc: devicetree@vger.kernel.org, Lorenzo Pieralisi , Mark Rutland , Rob Herring , Daniel Lezcano , Kevin Hilman , Chander Kashyap , Stephen Boyd Subject: [PATCH 3/3] drivers: cpuidle: remove cpuidle-arm64 duplicate error messages Date: Thu, 16 Oct 2014 14:59:57 +0100 Message-Id: <1413467997-32131-3-git-send-email-lorenzo.pieralisi@arm.com> X-Mailer: git-send-email 2.1.2 In-Reply-To: <1413467997-32131-1-git-send-email-lorenzo.pieralisi@arm.com> References: <1413467997-32131-1-git-send-email-lorenzo.pieralisi@arm.com> X-OriginalArrivalTime: 16 Oct 2014 13:59:20.0289 (UTC) FILETIME=[61FD0510:01CFE949] X-MC-Unique: 114101614592412601 Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lorenzo.pieralisi@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 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: , 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. Signed-off-by: Lorenzo Pieralisi --- 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);