summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2010-10-15 08:29:31 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-10-21 22:21:24 +0200
commit3b1e59e2c45b85a1c0042406373538b2fe7fde97 (patch)
tree605a7878d775572fcbc5c1b435c1f51015a9c981
parente91b5115871ab9c619786cb045e23338ff7e68ae (diff)
downloadbarebox-3b1e59e2c45b85a1c0042406373538b2fe7fde97.tar.gz
imx_dump_clocks: sparse fixes
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/mach-imx/include/mach/clock.h2
-rw-r--r--arch/arm/mach-imx/speed-imx25.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/include/mach/clock.h b/arch/arm/mach-imx/include/mach/clock.h
index bbe7a60..5b590a2 100644
--- a/arch/arm/mach-imx/include/mach/clock.h
+++ b/arch/arm/mach-imx/include/mach/clock.h
@@ -33,4 +33,6 @@ ulong imx_get_mmcclk(void);
int imx_clko_set_div(int div);
void imx_clko_set_src(int src);
+void imx_dump_clocks(void);
+
#endif /* __ASM_ARCH_CLOCK_H */
diff --git a/arch/arm/mach-imx/speed-imx25.c b/arch/arm/mach-imx/speed-imx25.c
index e8feb6b..cb28e9f 100644
--- a/arch/arm/mach-imx/speed-imx25.c
+++ b/arch/arm/mach-imx/speed-imx25.c
@@ -87,7 +87,7 @@ unsigned long imx_get_mmcclk(void)
return imx_get_perclk(3);
}
-int imx_dump_clocks(void)
+void imx_dump_clocks(void)
{
printf("mpll: %10d Hz\n", imx_get_mpllclk());
printf("upll: %10d Hz\n", imx_get_upllclk());
@@ -99,7 +99,6 @@ int imx_dump_clocks(void)
printf("lcd: %10d Hz\n", imx_get_perclk(7));
printf("i2c: %10d Hz\n", imx_get_perclk(6));
printf("sdhc1: %10d Hz\n", imx_get_perclk(3));
- return 0;
}
/*