From 4532e50e137ece49e6dbd1879057ce29da094073 Mon Sep 17 00:00:00 2001 From: Krishna Reddy Date: Tue, 25 Sep 2012 14:48:00 -0700 Subject: arm: tegra: la: Convert error message to WARN_ONCE Change-Id: Ie11de7963ea9c9538d6c6a2db971c47f66eb0912 Signed-off-by: Krishna Reddy Reviewed-on: http://git-master/r/138720 (cherry picked from commit 8a9ab8c39e09ab7e9bea494b7f585a6cba7258dd) Reviewed-on: http://git-master/r/143783 Reviewed-by: Alex Waterman Reviewed-by: Automatic_Commit_Validation_User Rebase-Id: R71917ffcdf7db63c2298b1d787e3d72b027d73b6 --- arch/arm/mach-tegra/latency_allowance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/arm') diff --git a/arch/arm/mach-tegra/latency_allowance.c b/arch/arm/mach-tegra/latency_allowance.c index 922281969a2e..6cf170c401b8 100644 --- a/arch/arm/mach-tegra/latency_allowance.c +++ b/arch/arm/mach-tegra/latency_allowance.c @@ -53,7 +53,7 @@ static int la_scaling_enable_count; #define VALIDATE_ID(id) \ do { \ if (id >= TEGRA_LA_MAX_ID || id_to_index[id] == 0xFFFF) { \ - pr_err("%s: invalid Id=%d", __func__, id); \ + WARN_ONCE(1, "%s: invalid Id=%d", __func__, id); \ return -EINVAL; \ } \ BUG_ON(la_info_array[id_to_index[id]].id != id); \ -- cgit v1.2.3