From patchwork Tue Dec 8 14:16:15 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 65695 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB8EJpgq009980 for ; Tue, 8 Dec 2009 14:19:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755475AbZLHOTe (ORCPT ); Tue, 8 Dec 2009 09:19:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755168AbZLHOTd (ORCPT ); Tue, 8 Dec 2009 09:19:33 -0500 Received: from smtp.nokia.com ([192.100.122.230]:57466 "EHLO mgw-mx03.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755244AbZLHOTd (ORCPT ); Tue, 8 Dec 2009 09:19:33 -0500 Received: from vaebh106.NOE.Nokia.com (vaebh106.europe.nokia.com [10.160.244.32]) by mgw-mx03.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id nB8EJbdg000646 for ; Tue, 8 Dec 2009 16:19:37 +0200 Received: from esebh102.NOE.Nokia.com ([172.21.138.183]) by vaebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 8 Dec 2009 16:19:36 +0200 Received: from mgw-da01.ext.nokia.com ([147.243.128.24]) by esebh102.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Tue, 8 Dec 2009 16:19:36 +0200 Received: from localhost.localdomain (sokoban.ntc.nokia.com [172.22.144.95]) by mgw-da01.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id nB8EJXnS029608 for ; Tue, 8 Dec 2009 16:19:34 +0200 From: Tero Kristo To: linux-omap@vger.kernel.org Subject: [PATCH] Smartreflex: Avoid unnecessary spam Date: Tue, 8 Dec 2009 16:16:15 +0200 Message-Id: <1260281775-30361-1-git-send-email-tero.kristo@nokia.com> X-Mailer: git-send-email 1.5.4.3 In-Reply-To: <> References: <> X-OriginalArrivalTime: 08 Dec 2009 14:19:36.0883 (UTC) FILETIME=[78BBC830:01CA7811] X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c index be3a1da..db228b2 100644 --- a/arch/arm/mach-omap2/smartreflex.c +++ b/arch/arm/mach-omap2/smartreflex.c @@ -675,13 +675,8 @@ void sr_start_vddautocomap(int srid, u32 target_opp_no) sr_configure(sr); } - if (sr->is_autocomp_active == 1) - pr_warning("SR%d: VDD autocomp is already active\n", - srid); - sr->is_autocomp_active = 1; if (!sr_enable(sr, target_opp_no)) { - pr_warning("SR%d: VDD autocomp not activated\n", srid); sr->is_autocomp_active = 0; if (sr->is_sr_reset == 1) sr_clk_disable(sr); @@ -707,11 +702,8 @@ int sr_stop_vddautocomap(int srid) /* Reset the volatage for current OPP */ sr_reset_voltage(srid); return true; - } else { - pr_warning("SR%d: VDD autocomp is not active\n", - srid); + } else return false; - } } EXPORT_SYMBOL(sr_stop_vddautocomap);