Skip to contentSkip to conversation

ARM: mach-imx: clk-imx51-imx53: Remove return value from mx53_clocks_init()

PATCH Superseded Fabio Estevam 1 participant 1 message Oct 9, 2013

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 ARM: mach-imx: clk-imx51-imx53: Remove return value from mx53_clocks_init()

From: Fabio Estevam <[email protected]>

Since commit 4d9d18a56 (ARM: imx: remove custom .init_time hook), mx53_clocks_init() does not return an integer anymore, so adjust it in order to fix the following build warning:

arch/arm/mach-imx/clk-imx51-imx53.c:579:2: warning: 'return' with a value, in function returning void [enabled by default]

---
 arch/arm/mach-imx/clk-imx51-imx53.c | 2 --
 1 file changed, 2 deletions(-)
arch/arm/mach-imx/clk-imx51-imx53.c +0 -2
index fa4de9a..ce37af2 100644
@@ -575,7 +575,5 @@ static void __init mx53_clocks_init(struct device_node *np)
 	WARN_ON(!base);
 	irq = irq_of_parse_and_map(np, 0);
 	mxc_timer_init(base, irq);
-
-	return 0;
 }
 CLK_OF_DECLARE(imx53_ccm, "fsl,imx53-ccm", mx53_clocks_init);
Signature · 1 line
1.8.1.2