aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2013-01-07 20:38:55 -0500
committerMike Turquette <mturquette@linaro.org>2013-01-15 19:16:27 -0500
commit38a8b096f86dea54cc64f4daa3402d0c4f2df43e (patch)
tree518bc2fb0cdb9833863e66e73f532d498374ab2c /drivers/clk
parentf1ba28a1f0fa16f3d0e78d199f3f9bf13e2d487b (diff)
clk: mxs: Index is always positive
Fix the following warnings when building with W=1 option: drivers/clk/mxs/clk-imx23.c: In function 'mx23_clocks_init': drivers/clk/mxs/clk-imx23.c:149:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] drivers/clk/mxs/clk-imx23.c:165:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ... drivers/clk/mxs/clk-imx28.c: In function 'mx28_clocks_init': drivers/clk/mxs/clk-imx28.c:227:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] drivers/clk/mxs/clk-imx28.c:244:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/mxs/clk-imx23.c2
-rw-r--r--drivers/clk/mxs/clk-imx28.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/mxs/clk-imx23.c b/drivers/clk/mxs/clk-imx23.c
index 8dd476e2a9c5..b5c06f9766f6 100644
--- a/drivers/clk/mxs/clk-imx23.c
+++ b/drivers/clk/mxs/clk-imx23.c
@@ -99,7 +99,7 @@ static enum imx23_clk clks_init_on[] __initdata = {
99int __init mx23_clocks_init(void) 99int __init mx23_clocks_init(void)
100{ 100{
101 struct device_node *np; 101 struct device_node *np;
102 int i; 102 u32 i;
103 103
104 clk_misc_init(); 104 clk_misc_init();
105 105
diff --git a/drivers/clk/mxs/clk-imx28.c b/drivers/clk/mxs/clk-imx28.c
index db3af0874121..126370a62ce2 100644
--- a/drivers/clk/mxs/clk-imx28.c
+++ b/drivers/clk/mxs/clk-imx28.c
@@ -154,7 +154,7 @@ static enum imx28_clk clks_init_on[] __initdata = {
154int __init mx28_clocks_init(void) 154int __init mx28_clocks_init(void)
155{ 155{
156 struct device_node *np; 156 struct device_node *np;
157 int i; 157 u32 i;
158 158
159 clk_misc_init(); 159 clk_misc_init();
160 160