summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/clk-imx35.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2013-01-08 23:37:01 -0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-01-25 11:12:38 +0100
commit3ea8098572280d16163a429e0f8dfd90492a5934 (patch)
treedf9d91b8b992da5d0d1515aeb46b233489e07e46 /arch/arm/mach-imx/clk-imx35.c
parentb7eed2076183994dbda2c19bc7fba99b65a135e3 (diff)
downloadop-kernel-dev-3ea8098572280d16163a429e0f8dfd90492a5934.zip
op-kernel-dev-3ea8098572280d16163a429e0f8dfd90492a5934.tar.gz
ARM: clk-imx35: Fix build warnings with W=1
Fix the following warnings when building with W=1 option: arch/arm/mach-imx/clk-imx35.c: In function 'mx35_clocks_init': arch/arm/mach-imx/clk-imx35.c:70:12: warning: old-style function definition [-Wold-style-definition] arch/arm/mach-imx/clk-imx35.c:201:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/clk-imx35.c')
-rw-r--r--arch/arm/mach-imx/clk-imx35.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/clk-imx35.c b/arch/arm/mach-imx/clk-imx35.c
index 66f3d65..219ab6c 100644
--- a/arch/arm/mach-imx/clk-imx35.c
+++ b/arch/arm/mach-imx/clk-imx35.c
@@ -67,13 +67,13 @@ enum mx35_clks {
static struct clk *clk[clk_max];
-int __init mx35_clocks_init()
+int __init mx35_clocks_init(void)
{
void __iomem *base = MX35_IO_ADDRESS(MX35_CCM_BASE_ADDR);
u32 pdr0, consumer_sel, hsp_sel;
struct arm_ahb_div *aad;
unsigned char *hsp_div;
- int i;
+ u32 i;
pdr0 = __raw_readl(base + MXC_CCM_PDR0);
consumer_sel = (pdr0 >> 16) & 0xf;
OpenPOWER on IntegriCloud