From patchwork Wed Nov 2 11:03:56 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Hui X-Patchwork-Id: 4893 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id A3C8723DC3 for ; Wed, 2 Nov 2011 10:56:39 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id 98FA6A181E7 for ; Wed, 2 Nov 2011 10:56:39 +0000 (UTC) Received: by mail-fx0-f52.google.com with SMTP id n26so367302faa.11 for ; Wed, 02 Nov 2011 03:56:39 -0700 (PDT) Received: by 10.223.94.143 with SMTP id z15mr3561614fam.32.1320231399508; Wed, 02 Nov 2011 03:56:39 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.14.103 with SMTP id o7cs44009lac; Wed, 2 Nov 2011 03:56:39 -0700 (PDT) Received: by 10.52.90.228 with SMTP id bz4mr3894812vdb.74.1320231397477; Wed, 02 Nov 2011 03:56:37 -0700 (PDT) Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe005.messaging.microsoft.com. [216.32.181.185]) by mx.google.com with ESMTPS id gg6si498901vcb.20.2011.11.02.03.56.36 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 02 Nov 2011 03:56:37 -0700 (PDT) Received-SPF: neutral (google.com: 216.32.181.185 is neither permitted nor denied by best guess record for domain of jason.hui@linaro.org) client-ip=216.32.181.185; Authentication-Results: mx.google.com; spf=neutral (google.com: 216.32.181.185 is neither permitted nor denied by best guess record for domain of jason.hui@linaro.org) smtp.mail=jason.hui@linaro.org Received: from mail113-ch1-R.bigfish.com (10.43.68.251) by CH1EHSOBE004.bigfish.com (10.43.70.54) with Microsoft SMTP Server id 14.1.225.22; Wed, 2 Nov 2011 10:56:22 +0000 Received: from mail113-ch1 (localhost.localdomain [127.0.0.1]) by mail113-ch1-R.bigfish.com (Postfix) with ESMTP id 26B9E5900E9; Wed, 2 Nov 2011 10:56:30 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275dhz2dh87h2a8h668h839h) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPVD:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-FB-SS: 0, X-FB-DOMAIN-IP-MATCH: fail Received: from mail113-ch1 (localhost.localdomain [127.0.0.1]) by mail113-ch1 (MessageSwitch) id 1320231387816267_28703; Wed, 2 Nov 2011 10:56:27 +0000 (UTC) Received: from CH1EHSMHS008.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.253]) by mail113-ch1.bigfish.com (Postfix) with ESMTP id B8C93840050; Wed, 2 Nov 2011 10:56:27 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CH1EHSMHS008.bigfish.com (10.43.70.8) with Microsoft SMTP Server (TLS) id 14.1.225.22; Wed, 2 Nov 2011 10:56:18 +0000 Received: from az33smr01.freescale.net (10.64.34.199) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server id 14.1.339.2; Wed, 2 Nov 2011 05:56:32 -0500 Received: from r64343-desktop.ap.freescale.net (r64343-desktop.ap.freescale.net [10.192.242.36]) by az33smr01.freescale.net (8.13.1/8.13.0) with ESMTP id pA2AuJnQ011228; Wed, 2 Nov 2011 05:56:30 -0500 (CDT) From: Jason Liu To: CC: , , , Subject: [PATCH v3 3/3] ARM:i.MX: fix the compile warnings in clock-mx51-mx53.c Date: Wed, 2 Nov 2011 19:03:56 +0800 Message-ID: <1320231836-9555-6-git-send-email-jason.hui@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1320231836-9555-1-git-send-email-jason.hui@linaro.org> References: <1320231836-9555-1-git-send-email-jason.hui@linaro.org> MIME-Version: 1.0 X-OriginatorOrg: sigmatel.com arch/arm/mach-mx5/clock-mx51-mx53.c: In function 'clk_get_freq_dt': arch/arm/mach-mx5/clock-mx51-mx53.c:1640: warning: unused variable 'np' arch/arm/mach-mx5/clock-mx51-mx53.c: In function 'mx53_clocks_init_dt': arch/arm/mach-mx5/clock-mx51-mx53.c:1673: warning: 'ckil' is used uninitialized in this function arch/arm/mach-mx5/clock-mx51-mx53.c:1673: warning: 'osc' is used uninitialized in this function arch/arm/mach-mx5/clock-mx51-mx53.c:1673: warning: 'ckih1' is used uninitialized in this function arch/arm/mach-mx5/clock-mx51-mx53.c:1673: warning: 'ckih2' is used uninitialized in this function arch/arm/mach-mx5/clock-mx51-mx53.c: In function 'mx51_clocks_init_dt': arch/arm/mach-mx5/clock-mx51-mx53.c:1665: warning: 'ckil' is used uninitialized in this function arch/arm/mach-mx5/clock-mx51-mx53.c:1665: warning: 'osc' is used uninitialized in this function arch/arm/mach-mx5/clock-mx51-mx53.c:1665: warning: 'ckih1' is used uninitialized in this function arch/arm/mach-mx5/clock-mx51-mx53.c:1665: warning: 'ckih2' is used uninitialized in this function Signed-off-by: Jason Liu --- arch/arm/mach-mx5/clock-mx51-mx53.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mx5/clock-mx51-mx53.c b/arch/arm/mach-mx5/clock-mx51-mx53.c index 7c373b83..e352a5a 100644 --- a/arch/arm/mach-mx5/clock-mx51-mx53.c +++ b/arch/arm/mach-mx5/clock-mx51-mx53.c @@ -1662,6 +1662,7 @@ int __init mx51_clocks_init_dt(void) { unsigned long ckil, osc, ckih1, ckih2; + ckil = osc = ckih1 = ckih2 = 0; clk_get_freq_dt(&ckil, &osc, &ckih1, &ckih2); return mx51_clocks_init(ckil, osc, ckih1, ckih2); } @@ -1670,6 +1671,7 @@ int __init mx53_clocks_init_dt(void) { unsigned long ckil, osc, ckih1, ckih2; + ckil = osc = ckih1 = ckih2 = 0; clk_get_freq_dt(&ckil, &osc, &ckih1, &ckih2); return mx53_clocks_init(ckil, osc, ckih1, ckih2); }