From patchwork Fri Mar 20 12:32:29 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajendra Nayak X-Patchwork-Id: 13308 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 n2KCWWxw024284 for ; Fri, 20 Mar 2009 12:32:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753728AbZCTMcl (ORCPT ); Fri, 20 Mar 2009 08:32:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753866AbZCTMcl (ORCPT ); Fri, 20 Mar 2009 08:32:41 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:58375 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753728AbZCTMck convert rfc822-to-8bit (ORCPT ); Fri, 20 Mar 2009 08:32:40 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id n2KCWWlT011279 for ; Fri, 20 Mar 2009 07:32:38 -0500 Received: from dbde70.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id n2KCWVrm023413 for ; Fri, 20 Mar 2009 18:02:31 +0530 (IST) Received: from dbde02.ent.ti.com ([172.24.170.145]) by dbde70.ent.ti.com ([172.24.170.148]) with mapi; Fri, 20 Mar 2009 18:02:30 +0530 From: "Nayak, Rajendra" To: "linux-omap@vger.kernel.org" CC: "Nayak, Rajendra" Date: Fri, 20 Mar 2009 18:02:29 +0530 Subject: [PATCH 06/07] OMAP3: SR: Replace printk's with pr_* calls Thread-Topic: [PATCH 06/07] OMAP3: SR: Replace printk's with pr_* calls Thread-Index: AcmpV+7no6WfKqGDRwyK5ioKiySe3g== Message-ID: <5A47E75E594F054BAF48C5E4FC4B92AB02FAF6EEF6@dbde02.ent.ti.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: Rajendra Nayak This patch replaces all the printk(KERN_* with pr_* calls. Signed-off-by: Rajendra Nayak --- arch/arm/mach-omap2/smartreflex.c | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-omap-pm/arch/arm/mach-omap2/smartreflex.c =================================================================== --- linux-omap-pm.orig/arch/arm/mach-omap2/smartreflex.c 2009-03-20 10:50:07.000000000 +0530 +++ linux-omap-pm/arch/arm/mach-omap2/smartreflex.c 2009-03-20 10:55:48.499500781 +0530 @@ -78,7 +78,7 @@ static inline u32 sr_read_reg(struct oma static int sr_clk_enable(struct omap_sr *sr) { if (clk_enable(sr->clk) != 0) { - printk(KERN_ERR "Could not enable %s\n", sr->clk->name); + pr_err("Could not enable %s\n", sr->clk->name); return -1; } @@ -170,7 +170,7 @@ static void sr_set_clk_length(struct oma sr->clk_length = SRCLKLENGTH_38MHZ_SYSCLK; break; default : - printk(KERN_ERR "Invalid sysclk value: %d\n", sys_clk_speed); + pr_err("Invalid sysclk value: %d\n", sys_clk_speed); break; } } @@ -409,7 +409,7 @@ static int sr_reset_voltage(int srid) while ((vc_bypass_value & OMAP3430_VALID) != 0x0) { loop_cnt++; if (retries_cnt > 10) { - printk(KERN_INFO "Loop count exceeded in check SR I2C" + pr_info("Loop count exceeded in check SR I2C" "write\n"); return SR_FAIL; } @@ -471,7 +471,7 @@ static int sr_enable(struct omap_sr *sr, } if (nvalue_reciprocal == 0) { - printk(KERN_NOTICE "OPP%d doesn't support SmartReflex\n", + pr_notice("OPP%d doesn't support SmartReflex\n", target_opp_no); return SR_FALSE; } @@ -560,12 +560,12 @@ void sr_start_vddautocomap(int srid, u32 } if (sr->is_autocomp_active == 1) - printk(KERN_WARNING "SR%d: VDD autocomp is already active\n", + pr_warning("SR%d: VDD autocomp is already active\n", srid); sr->is_autocomp_active = 1; if (!sr_enable(sr, target_opp_no)) { - printk(KERN_WARNING "SR%d: VDD autocomp not activated\n", srid); + 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); @@ -590,7 +590,7 @@ int sr_stop_vddautocomap(int srid) sr_reset_voltage(srid); return SR_TRUE; } else { - printk(KERN_WARNING "SR%d: VDD autocomp is not active\n", + pr_warning("SR%d: VDD autocomp is not active\n", srid); return SR_FALSE; } @@ -706,7 +706,7 @@ int sr_voltagescale_vcbypass(u32 target_ while ((vc_bypass_value & OMAP3430_VALID) != 0x0) { loop_cnt++; if (retries_cnt > 10) { - printk(KERN_INFO "Loop count exceeded in check SR I2C" + pr_info("Loop count exceeded in check SR I2C" "write\n"); return SR_FAIL; } @@ -746,7 +746,7 @@ static ssize_t omap_sr_vdd1_autocomp_sto unsigned short value; if (sscanf(buf, "%hu", &value) != 1 || (value > 1)) { - printk(KERN_ERR "sr_vdd1_autocomp: Invalid value\n"); + pr_err("sr_vdd1_autocomp: Invalid value\n"); return -EINVAL; } @@ -784,7 +784,7 @@ static ssize_t omap_sr_vdd2_autocomp_sto unsigned short value; if (sscanf(buf, "%hu", &value) != 1 || (value > 1)) { - printk(KERN_ERR "sr_vdd2_autocomp: Invalid value\n"); + pr_err("sr_vdd2_autocomp: Invalid value\n"); return -EINVAL; } @@ -836,15 +836,15 @@ static int __init omap3_sr_init(void) sr_set_nvalues(&sr2); sr_configure_vp(SR2); - printk(KERN_INFO "SmartReflex driver initialized\n"); + pr_info("SmartReflex driver initialized\n"); ret = sysfs_create_file(power_kobj, &sr_vdd1_autocomp.attr); if (ret) - printk(KERN_ERR "sysfs_create_file failed: %d\n", ret); + pr_err("sysfs_create_file failed: %d\n", ret); ret = sysfs_create_file(power_kobj, &sr_vdd2_autocomp.attr); if (ret) - printk(KERN_ERR "sysfs_create_file failed: %d\n", ret); + pr_err("sysfs_create_file failed: %d\n", ret); return 0; }--