Ladislav Michl wrote: > On Wed, Oct 04, 2006 at 03:28:43PM +0200, Dirk Behme wrote: > >>Fix warning >> >>arch/arm/mach-omap1/clock.c: In function >>'omap1_clk_enable_generic': >>arch/arm/mach-omap1/clock.c:499: warning: 'return' with no >>value, in function returning non-void >> >>Signed-off-by: Dirk Behme >> > >>--- ./arch/arm/mach-omap1/clock.c_orig 2006-10-04 15:07:39.000000000 +0200 >>+++ ./arch/arm/mach-omap1/clock.c 2006-10-04 15:09:41.000000000 +0200 >>@@ -496,7 +496,7 @@ static int omap1_clk_enable_generic(stru >> } >> } >> >>- return; >>+ return 0; >> } > > > Does it make sense to return any vaule at all? This functions return > always 0. Perhaps in case there is no enable reg it should return > something else. Btw, can this code run on omap2 cpu? What's about something like in attachment?